diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2017-10-29 23:21:07 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2017-10-29 23:21:07 +0000 |
commit | 9b859960944cf49fa9a4e74f10895c3663bbbac0 (patch) | |
tree | ac7b187065942d357598b38c57a6d73df635ea03 /tools/gen-deps.sh | |
parent | f565c169c3a0e8e7ee82bc8af9811fe5934ccd5d (diff) | |
download | s6-9b859960944cf49fa9a4e74f10895c3663bbbac0.tar.xz |
Support default pie
Diffstat (limited to 'tools/gen-deps.sh')
-rwxr-xr-x | tools/gen-deps.sh | 4 |
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 |