Remove -rdynamic again
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Sun, 21 Jul 2013 17:07:25 +0000 (18:07 +0100)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Sun, 21 Jul 2013 22:51:59 +0000 (23:51 +0100)
It's now become more urgent we have a proper fix for this as clang 3.4 accepts the -rdynamic flag. Unfortunately, unlike gcc, it just blindly emits -export-dynamic in the list of arguments to the linker which causes the ld to emit and error and the build fails.

scripts/libtool.mk

index f3570d8..27a9ef4 100644 (file)
@@ -147,8 +147,8 @@ ifeq "${bm_shared_libs}" "yes"
     #          with no dependency on the source. 
     # RELINL : flags use to build executables that can be run
     #          from the build directory / source tree.
-    RPATH_FLAGS := -rpath ${libdir} -rdynamic
-    RELINK_FLAGS := -rpath $(abspath ${BUILD_DIR})/lib/${RELINK}/.libs -rdynamic
+    RPATH_FLAGS := -rpath ${libdir}
+    RELINK_FLAGS := -rpath $(abspath ${BUILD_DIR})/lib/${RELINK}/.libs
     
     RELINK_FLAGS_MIN := -rpath ${libdir}