mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 08:21:25 +00:00
Updates, bug fixes for using the dynamic linker to look up paths of
object files from which classes have been loaded git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@14872 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
40d05e748f
commit
ea1ac7c7c1
5 changed files with 151 additions and 85 deletions
18
configure
vendored
18
configure
vendored
|
@ -6316,7 +6316,20 @@ fi
|
|||
|
||||
fi
|
||||
|
||||
echo "$as_me:$LINENO: checking for dynamic linker type" >&5
|
||||
echo $ECHO_N "checking for dynamic linker type... $ECHO_C" >&6
|
||||
echo "$as_me:$LINENO: result: $DYNAMIC_LINKER" >&5
|
||||
echo "${ECHO_T}$DYNAMIC_LINKER" >&6
|
||||
|
||||
if test $DYNAMIC_LINKER = simple; then
|
||||
echo "$as_me:$LINENO: checking checking if dladdr() is available" >&5
|
||||
echo $ECHO_N "checking checking if dladdr() is available... $ECHO_C" >&6
|
||||
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
|
||||
cat >conftest.$ac_ext <<_ACEOF
|
||||
#line $LINENO "configure"
|
||||
#include "confdefs.h"
|
||||
|
@ -6352,11 +6365,16 @@ cat >>confdefs.h <<\_ACEOF
|
|||
#define HAVE_DLADDR 1
|
||||
_ACEOF
|
||||
|
||||
echo "$as_me:$LINENO: result: yes" >&5
|
||||
echo "${ECHO_T}yes" >&6
|
||||
else
|
||||
echo "$as_me: failed program was:" >&5
|
||||
cat conftest.$ac_ext >&5
|
||||
echo "$as_me:$LINENO: result: no" >&5
|
||||
echo "${ECHO_T}no" >&6
|
||||
fi
|
||||
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
|
||||
LDFLAGS="$old_LDFLAGS"
|
||||
fi
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue