X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/9189fe94c14ef9e31142d1603a1979ea7e731a0a..6adbdf3111853382e59839fd562d8d47726f1dae:/acmacro/compiler-flags.m4?ds=sidebyside diff --git a/acmacro/compiler-flags.m4 b/acmacro/compiler-flags.m4 index 6ee18e2876..9beedef285 100644 --- a/acmacro/compiler-flags.m4 +++ b/acmacro/compiler-flags.m4 @@ -87,5 +87,12 @@ AC_DEFUN([SG_COMPILE_FLAGS],[ CFLAGS="$optCFLAGS $CFLAGS" fi fi + + if test x$lt_cv_prog_gnu_ld = xyes ; then + LD_DYNAMIC_FLAGS=-Wl,--export-dynamic + else + LD_DYNAMIC_FLAGS= + fi + AC_SUBST(LD_DYNAMIC_FLAGS) ])