]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
build: don't use -Wl,-pie
authorVincent Bernat <vincent@bernat.im>
Wed, 20 May 2015 21:44:21 +0000 (23:44 +0200)
committerVincent Bernat <vincent@bernat.im>
Wed, 20 May 2015 21:44:21 +0000 (23:44 +0200)
This flag seems to work when running on i386 on Linux but isn't handled
correctly by libtool and liblldpctl.so ends being without any
symbol. Use -pie only and try an up-to-date libtoolize on OSX to see if
it performs better.

.travis/install.sh
configure.ac

index 78f43735d0b0fe17fa36ee7c19044f409224b36a..b742e4cc29517673733ded0adfaec0a91d005b64 100755 (executable)
@@ -20,7 +20,7 @@ case "$(uname -s)" in
     Darwin)
         # OS X
         brew update
-        brew install libevent jansson libxml2 check net-snmp
+        brew install libtool autoconf automake libevent jansson libxml2 check net-snmp
         ;;
     *)
         # Linux
index ca1c8aef39af7ac62babb3896a4d942dca6980fa..196829df2e6c65d0a52b55975089b5cda765b588 100644 (file)
@@ -98,8 +98,7 @@ if test x"$hardening" != x"no"; then
   AX_CFLAGS_GCC_OPTION([-fstack-protector-strong], [LLDP_CFLAGS])
   AX_CFLAGS_GCC_OPTION([-D_FORTIFY_SOURCE=2], [LLDP_CPPFLAGS])
   AX_CFLAGS_GCC_OPTION([-fPIE], [LLDP_CFLAGS])
-  AX_LDFLAGS_OPTION([-fPIE -Wl,-pie], [LLDP_LDFLAGS],
-    [AX_LDFLAGS_OPTION([-fPIE -pie], [LLDP_LDFLAGS])])
+  AX_LDFLAGS_OPTION([-fPIE -pie], [LLDP_LDFLAGS])
 fi
 
 # OS