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