]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
configure: move LDFLAGS to LLDP_LDFLAGS
authorVincent Bernat <vincent@bernat.im>
Thu, 19 Feb 2015 16:01:35 +0000 (17:01 +0100)
committerVincent Bernat <vincent@bernat.im>
Thu, 19 Feb 2015 16:01:35 +0000 (17:01 +0100)
configure.ac
src/Makefile.am
src/client/Makefile.am
src/daemon/Makefile.am
src/lib/Makefile.am
tests/Makefile.am

index 1f9bdb76edabf34c58dfbf7b77c3844373234fdc..9b22e86018f4129e1fc3dcc6112c2161193b2067 100644 (file)
@@ -278,8 +278,10 @@ lldp_ARG_ENABLE([oldies], [compatibility with Linux kernel older than 2.6.18], [
 # Output results
 AC_SUBST([LLDP_CFLAGS], [$CFLAGS])
 AC_SUBST([LLDP_CPPFLAGS], [$CPPFLAGS])
+AC_SUBST([LLDP_LDFLAGS], [$LDFLAGS])
 CFLAGS=
-CPPFLAGS
+CPPFLAGS=
+LDFLAGS=
 AM_CONDITIONAL([HAVE_CHECK], [test x"$have_check" = x"yes"])
 AM_CONDITIONAL([USE_SNMP], [test x"$with_snmp" = x"yes"])
 AM_CONDITIONAL([USE_XML], [test x"$with_xml" = x"yes"])
@@ -302,7 +304,7 @@ cat <<EOF
   OS.............: $os
   Prefix.........: $prefix
   C Compiler.....: $CC $LLDP_CFLAGS $LLDP_CPPFLAGS
-  Linker.........: $LD $LDFLAGS $LIBS
+  Linker.........: $LD $LLDP_LDFLAGS $LIBS
   Libevent.......: $libevent
   Readline.......: ${ax_cv_lib_readline}
  Optional features:
index a6bcd5384d0b72cdc2a0e5d5ff1045cdbb2432c6..63e3c1f286939a12786bcf86e44ad4b71de106e7 100644 (file)
@@ -1,5 +1,6 @@
 AM_CFLAGS = -I $(top_srcdir)/include $(LLDP_CFLAGS)
 AM_CPPFLAGS = $(LLDP_CPPFLAGS)
+AM_LDFLAGS = $(LLDP_LDFLAGS)
 
 noinst_LTLIBRARIES = libcommon-daemon-lib.la libcommon-daemon-client.la
 include_HEADERS    = lldp-const.h
index 555a46db17ad0d3705a0ebca869e3fb9525c975f..8fbb155ba6c43eb48075e708bbf9c22a9545691d 100644 (file)
@@ -1,5 +1,6 @@
 AM_CFLAGS = -I $(top_srcdir)/include $(LLDP_CFLAGS)
 AM_CPPFLAGS = $(LLDP_CPPFLAGS)
+AM_LDFLAGS = $(LLDP_LDFLAGS)
 
 sbin_PROGRAMS = lldpcli
 man_MANS = lldpcli.8
index a36ad5475d523cb5d2b198695be160bf80f264a5..df5649ace632c8c138b5881e913669d960545841 100644 (file)
@@ -1,5 +1,6 @@
 AM_CFLAGS = -I $(top_srcdir)/include $(LLDP_CFLAGS)
 AM_CPPFLAGS = $(LLDP_CPPFLAGS)
+AM_LDFLAGS = $(LLDP_LDFLAGS)
 BUILT_SOURCES =
 CLEANFILES =
 
@@ -75,7 +76,8 @@ liblldpd_la_SOURCES += \
        interfaces-bsd.c \
        dmi-osx.c \
        priv-bsd.c
-liblldpd_la_LDFLAGS  = -framework Foundation
+liblldpd_la_LDFLAGS  = $(AM_LDFLAGS)
+liblldpd_la_LDFLAGS += -framework Foundation
 liblldpd_la_LDFLAGS += -framework CoreFoundation -framework IOKit
 liblldpd_la_LDFLAGS += -framework IOKit
 endif
index 79af6a9598bd1b0ee119a8241f7e85fb0bac7d21..edc9797fa476259470ffbffc847f21ab32108658 100644 (file)
@@ -1,5 +1,6 @@
 AM_CFLAGS = -I $(top_srcdir)/include $(LLDP_CFLAGS)
 AM_CPPFLAGS = $(LLDP_CPPFLAGS)
+AM_LDFLAGS = $(LLDP_LDFLAGS)
 
 lib_LTLIBRARIES = liblldpctl.la
 include_HEADERS = lldpctl.h
@@ -9,7 +10,7 @@ libfixedpoint_la_SOURCES = fixedpoint.h fixedpoint.c
 
 liblldpctl_la_SOURCES = lldpctl.h private.h errors.c connection.c atom.c atom-private.c
 liblldpctl_la_LIBADD  = $(top_builddir)/src/libcommon-daemon-lib.la libfixedpoint.la
-liblldpctl_la_LDFLAGS = -export-symbols-regex '^lldpctl_' -version-info 8:0:4
+liblldpctl_la_LDFLAGS = $(AM_LDFLAGS) -export-symbols-regex '^lldpctl_' -version-info 8:0:4
 
 # -version-info format is `current`:`revision`:`age`. For more details, see:
 #   http://sources.redhat.com/autobook/autobook/autobook_91.html#SEC91
index 86d759fc87f16c8fad87d72af62c89bea6e7c01f..4d305186113eba7e0f158d131c1f884f0473872c 100644 (file)
@@ -1,5 +1,6 @@
 AM_CFLAGS = -I $(top_srcdir)/include $(LLDP_CFLAGS)
 AM_CPPFLAGS = $(LLDP_CPPFLAGS)
+AM_LDFLAGS = $(LLDP_LDFLAGS)
 
 if HAVE_CHECK