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.
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
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