aboutsummaryrefslogtreecommitdiff
path: root/autogen.sh
diff options
context:
space:
mode:
authorBrent Cook <bcook@openbsd.org>2015-06-13 22:26:58 -0500
committerBrent Cook <bcook@openbsd.org>2015-06-13 22:26:58 -0500
commitb091d23685dd59185b0b8e8e23786a452f622b16 (patch)
treec61a0ca3a13bbee2fdcc68a62ce3f9058fc97406 /autogen.sh
parentbc7b93470f694eee13cd3d9012caa4caefaeb9bc (diff)
downloadportable-b091d23685dd59185b0b8e8e23786a452f622b16.tar.gz
portable-b091d23685dd59185b0b8e8e23786a452f622b16.tar.bz2
portable-b091d23685dd59185b0b8e8e23786a452f622b16.zip
fix libtool 2.4.2 stack-protector flag handling
Teach libtool 2.4.2 how to pass -fstack-protector* to the linker so libssp is properly linked in on some toolchains. See upstream patch: https://github.com/instantinfrastructure/poky-daisy/blob/master/meta/recipes-devtools/libtool/libtool/respect-fstack-protector.patch Thanks to kinichiro inoguchi
Diffstat (limited to 'autogen.sh')
-rwxr-xr-xautogen.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/autogen.sh b/autogen.sh
index 0b0fc04..72174ea 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -4,3 +4,8 @@ set -e
4./update.sh 4./update.sh
5mkdir -p m4 5mkdir -p m4
6autoreconf -i -f 6autoreconf -i -f
7
8# Patch libtool 2.4.2 to pass -fstack-protector as a linker argument
9sed 's/-fuse-linker-plugin)/-fuse-linker-plugin|-fstack-protector*)/' \
10 ltmain.sh > ltmain.sh.fixed
11mv -f ltmain.sh.fixed ltmain.sh