about summary refs log tree commit diff
path: root/tools
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2017-10-29 23:21:03 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2017-10-29 23:21:03 +0000
commit903265fd502541ae77327ccb5d72f5dc3626bb57 (patch)
tree52ada62f284d71fd30fdcb526f60c5dd95c8c722 /tools
parent7af760017808b863fa1fdc9ea3e849315d451f82 (diff)
downloadbcnm-903265fd502541ae77327ccb5d72f5dc3626bb57.tar.gz
bcnm-903265fd502541ae77327ccb5d72f5dc3626bb57.tar.xz
bcnm-903265fd502541ae77327ccb5d72f5dc3626bb57.zip
Support default pie
Diffstat (limited to 'tools')
-rwxr-xr-xtools/gen-deps.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/gen-deps.sh b/tools/gen-deps.sh
index 5c96dd1..67ec2d4 100755
--- a/tools/gen-deps.sh
+++ b/tools/gen-deps.sh
@@ -65,7 +65,11 @@ 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')"
   done