summary refs log tree commit diff
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2017-10-29 15:37:06 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2017-10-29 15:37:06 +0000
commit1c24dffd66fd7673635f81c6228d28ddc675991f (patch)
tree2a1dae2ffbb7e267c421421fc527fa7dd4d1d1da
parentbef0a1cb3712a5f4d21a6d79c58f6a93486ce7fd (diff)
downloadexecline-1c24dffd66fd7673635f81c6228d28ddc675991f.tar.gz
execline-1c24dffd66fd7673635f81c6228d28ddc675991f.tar.xz
execline-1c24dffd66fd7673635f81c6228d28ddc675991f.zip
Add default pie support to gen-deps.sh
-rwxr-xr-xtools/gen-deps.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/gen-deps.sh b/tools/gen-deps.sh
index 5c96dd1..3f6838e 100755
--- a/tools/gen-deps.sh
+++ b/tools/gen-deps.sh
@@ -65,9 +65,13 @@ for dir in $(ls -1 src | grep -v ^include) ; do
         deps="$deps src/$dir/$dep"
       fi
     done < src/$dir/deps-lib/$file
+    echo 'ifeq ($(strip $(DEFAULT_PIE)),)'
     echo "lib${file}.a.xyzzy:$deps"
+    echo else
+    echo "lib${file}.a.xyzzy:$(echo "$deps" | sed 's/\.o$/.lo/g')"
+    echo endif
     echo "lib${file}.so.xyzzy: EXTRA_LIBS :=$libs"
-    echo "lib${file}.so.xyzzy:$(echo "$deps" | sed 's/\.o/.lo/g')"
+    echo "lib${file}.so.xyzzy:$(echo "$deps" | sed 's/\.o$/.lo/g')"
   done
 
   for file in $(ls -1 src/$dir/deps-exe) ; do