[PATCH] build: Move -rdynamic from CPPFLAGS to LDFLAGS

Tobias Klauser tklauser at distanz.ch
Thu Mar 31 05:42:31 PDT 2016


The -rdynamic flag is a linker flag, not a compiler/preprocessor flag,
so move it to LDFLAGS.

Signed-off-by: Tobias Klauser <tklauser at distanz.ch>
---
 src/lib/Makefile.am | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/lib/Makefile.am b/src/lib/Makefile.am
index 9b83e4fb0f61..77076509f3e0 100644
--- a/src/lib/Makefile.am
+++ b/src/lib/Makefile.am
@@ -6,11 +6,11 @@ AM_CPPFLAGS  = \
 	-I${top_builddir}/include \
 	-D_GNU_SOURCE \
 	-DPKGLIBDIR=\"$(pkglibdir)\" \
-	-DSYSCONFDIR=\"$(sysconfdir)\" \
-	-rdynamic
+	-DSYSCONFDIR=\"$(sysconfdir)\"
 
 AM_CFLAGS = -Wall
 AM_LDFLAGS = \
+	-rdynamic \
 	-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
 NL_LIBADD = \
 	-L${top_builddir}/lib \
-- 
2.8.0





More information about the libnl mailing list