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-17 20:33:37 -0500 |
commit | 189504f50be03ab81af6a24f4a676b932e676be1 (patch) | |
tree | 358aafecc3be3be6168fd0be5a24fd235acfa8c7 | |
parent | 26891ea6e3c4b3d23b9c93582adac8e13e128b4f (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>
-rw-r--r-- | configure.ac | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/configure.ac b/configure.ac index 510a31877..a4a743979 100644 --- a/configure.ac +++ b/configure.ac @@ -1349,22 +1349,16 @@ 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. +# Some platforms require extra flags to do this. libtool should set the +# necessary flags for each platform when -export-dynamic is passed to it. XORG_CWARNFLAGS if test "x$GCC" = "xyes"; then if test "x$WERROR" = "xyes"; then CWARNFLAGS="${CWARNFLAGS} -Werror" fi - LD_EXPORT_SYMBOLS_FLAG="-rdynamic" fi XSERVER_CFLAGS="$CWARNFLAGS $XSERVER_CFLAGS" -case $host_os in - openbsd*) - LD_EXPORT_SYMBOLS_FLAG="-Wl,--export-dynamic" - ;; -esac +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 |