diff options
author | Yaakov Selkowitz <yselkowitz@users.sourceforge.net> | 2010-02-24 02:56:59 -0600 |
---|---|---|
committer | Yaakov Selkowitz <yselkowitz@users.sourceforge.net> | 2010-03-22 00:45:48 -0500 |
commit | 8e5de45513577c63a33833931f2afd0cc59d42a7 (patch) | |
tree | 0b5d9012b67a712e1066d76e5cfff0581c0221e2 | |
parent | 2a11ffa977d2267d8b2f27b76490a98e9c73b8c7 (diff) |
Use libtool -export-dynamic flag for portability
The linker flag required for exporting symbols in executables varies
by platform. libtool handles this with a single -export-dynamic
flag (not to be confused with the similarly-named ELF linker flag)
which tells it to use the correct platform-specific flag at link time.
Signed-off-by: Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
Reviewed-by: Dan Nicholson <dbn.lists@gmail.com>
Reviewed-by: Keith Packard <keithp@keithp.com>
-rw-r--r-- | configure.ac | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/configure.ac b/configure.ac index e497e76b4..d379b3af5 100644 --- a/configure.ac +++ b/configure.ac @@ -1440,17 +1440,9 @@ UTILS_SYS_LIBS="${SYS_LIBS}" AC_SUBST([UTILS_SYS_LIBS]) # The Xorg binary needs to export symbols so that they can be used from modules -# Some platforms require extra flags to do this. gcc should set these flags -# when -rdynamic is passed to it, other compilers/linkers may need to be added -# here. -if test "x$GCC" = "xyes"; then - LD_EXPORT_SYMBOLS_FLAG="-rdynamic" -fi -case $host_os in - openbsd*) - LD_EXPORT_SYMBOLS_FLAG="-Wl,--export-dynamic" - ;; -esac +# Some platforms require extra flags to do this. libtool should set the +# necessary flags for each platform when -export-dynamic is passed to it. +LD_EXPORT_SYMBOLS_FLAG="-export-dynamic" AC_SUBST([LD_EXPORT_SYMBOLS_FLAG]) dnl Imake defines SVR4 on SVR4 systems, and many files check for it, so |