mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 00:11:26 +00:00
* configure.ac: Pass on original CPPFLAGS to config.mak.
* config/objc-con-autoload.m4: Test for constructors directly. * config/objc-sys-dynamic.m4: Check for dl lib if we are using dladdr. * Source/objc-load.m (objc_get_uninstalled_dtable): Remove unused. * Source/Additions/GSXML.m (unparsedEntityDeclFunction): Add block around START so it will compile on GCC 2. * Testing/nsbundle.m: Errors to stdout. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@16836 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
657f80abb5
commit
a82cf5c84b
8 changed files with 143 additions and 120 deletions
|
@ -26,18 +26,7 @@ AC_MSG_CHECKING([for dynamic linker type])
|
|||
AC_MSG_RESULT([$DYNAMIC_LINKER])
|
||||
|
||||
if test $DYNAMIC_LINKER = simple; then
|
||||
AC_MSG_CHECKING([checking if dladdr() is available])
|
||||
old_LDFLAGS="$LDFLAGS"
|
||||
case "$target_os" in
|
||||
linux-gnu*) LDFLAGS="$old_LDFLAGS -ldl";;
|
||||
solaris*) LDFLAGS="$old_LDFLAGS -ldl";;
|
||||
sysv4.2*) LDFLAGS="$old_LDFLAGS -ldl";;
|
||||
esac
|
||||
AC_TRY_LINK([#include <dlfcn.h>], dladdr(0,0);,
|
||||
AC_DEFINE(HAVE_DLADDR,1, [Define if you have dladdr])
|
||||
AC_MSG_RESULT([yes]),
|
||||
AC_MSG_RESULT([no]))
|
||||
LDFLAGS="$old_LDFLAGS"
|
||||
AC_CHECK_LIB(dl, dladdr)
|
||||
fi
|
||||
|
||||
AC_SUBST(DYNAMIC_LINKER)dnl
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue