Commit 6a810527 authored by Tiago Peixoto's avatar Tiago Peixoto

Link libraries "as needed"

parent faa125d3
......@@ -294,10 +294,14 @@ AC_SUBST(MOD_LIBADD)
# needed for typeinfo objects to work across DSO boundaries.
# see http://gcc.gnu.org/faq.html#dso
[MOD_LDFLAGS="-module -avoid-version -export-dynamic -no-undefined\
-Wl,-E"]
[MOD_LDFLAGS="-module -avoid-version -export-dynamic -no-undefined -Wl,-E"]
# link libraries as needed
[MOD_LDFLAGS="${MOD_LDFLAGS} -Wl,--as-needed"]
AC_SUBST(MOD_LDFLAGS)
AC_CONFIG_FILES([
Makefile
src/Makefile
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment