+ Change the numeric value for LLDP-MED policy L2 priority value
for "Best effort" to 0 to match 802.1D-2004.
* Change:
+ + PIE is now disabled by default. It's too difficult to reliably
+ detect if it works. Use --enable-pie to enable it.
+ Retrieve the permanent MAC address of an interface through
ethtool for Linux if /proc/net/bonding is not available.
+ Running lldpd with "-d" will keep the process in foreground but
[Enable compiler and linker options to frustrate memory corruption exploits @<:@default=yes@:>@])],
[hardening="$enableval"],
[hardening="yes"])
+AC_ARG_ENABLE([pie],
+ [AS_HELP_STRING([--enable-pie],
+ [Enable PIE (position independant executable) @<:@default=no@:>@])],
+ [pie="$enableval"],
+ [pie="no"])
if test x"$hardening" != x"no"; then
AX_CFLAGS_GCC_OPTION([-fstack-protector], [LLDP_CFLAGS])
AX_CFLAGS_GCC_OPTION([-fstack-protector-all], [LLDP_CFLAGS])
AX_CFLAGS_GCC_OPTION([-fstack-protector-strong], [LLDP_CFLAGS])
AX_CFLAGS_GCC_OPTION([-D_FORTIFY_SOURCE=2], [LLDP_CPPFLAGS])
+fi
+if test x"$pie" = x"yes"; then
AX_CFLAGS_GCC_OPTION([-fPIE], [LLDP_CFLAGS])
AX_LDFLAGS_OPTION([-fPIE -pie], [LLDP_BIN_LDFLAGS],
[AX_LDFLAGS_OPTION([-fPIE -Wl,-pie], [LLDP_BIN_LDFLAGS])])
include /usr/share/cdbs/1/rules/autoreconf.mk
include /usr/share/cdbs/1/class/autotools.mk
-DEB_CONFIGURE_EXTRA_FLAGS = --with-snmp --with-xml --with-json
+DEB_CONFIGURE_EXTRA_FLAGS = --with-snmp --with-xml --with-json --enable-pie
DEB_CONFIGURE_EXTRA_FLAGS += --with-systemdsystemunitdir=/lib/systemd/system
--localstatedir=%{_localstatedir} \
--sysconfdir=%{_sysconfdir} \
--libdir=%{_libdir} \
- --docdir=%{_docdir}/lldpd
+ --docdir=%{_docdir}/lldpd \
+ --enable-pie
[ -f %{_includedir}/net-snmp/agent/struct.h ] || touch src/struct.h
make %{?_smp_mflags}