mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-26 15:36:14 +01:00
made the check for needed underscore in module's func-names work on
1998-10-20 Sebastian Wilhelmi <wilhelmi@ira.uka.de> * configure.in: made the check for needed underscore in module's func-names work on solaris. (G_MODULE_NEED_USCORE must be set outside AC_CACHE_VAL, dlopen(0,0) refused to work on solaris).
This commit is contained in:
parent
1a3648688f
commit
fb20a36775
@ -1,3 +1,9 @@
|
|||||||
|
1998-10-20 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||||
|
|
||||||
|
* configure.in: made the check for needed _ in module's func-names
|
||||||
|
work on solaris. (G_MODULE_NEED_USCORE must be set outside
|
||||||
|
AC_CACHE_VAL, dlopen(0,0) refused to work on solaris).
|
||||||
|
|
||||||
Tue Oct 20 03:32:58 PDT 1998 Manish Singh <yosh@gimp.org>
|
Tue Oct 20 03:32:58 PDT 1998 Manish Singh <yosh@gimp.org>
|
||||||
|
|
||||||
* configure.in
|
* configure.in
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
|
1998-10-20 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||||
|
|
||||||
|
* configure.in: made the check for needed _ in module's func-names
|
||||||
|
work on solaris. (G_MODULE_NEED_USCORE must be set outside
|
||||||
|
AC_CACHE_VAL, dlopen(0,0) refused to work on solaris).
|
||||||
|
|
||||||
Tue Oct 20 03:32:58 PDT 1998 Manish Singh <yosh@gimp.org>
|
Tue Oct 20 03:32:58 PDT 1998 Manish Singh <yosh@gimp.org>
|
||||||
|
|
||||||
* configure.in
|
* configure.in
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
|
1998-10-20 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||||
|
|
||||||
|
* configure.in: made the check for needed _ in module's func-names
|
||||||
|
work on solaris. (G_MODULE_NEED_USCORE must be set outside
|
||||||
|
AC_CACHE_VAL, dlopen(0,0) refused to work on solaris).
|
||||||
|
|
||||||
Tue Oct 20 03:32:58 PDT 1998 Manish Singh <yosh@gimp.org>
|
Tue Oct 20 03:32:58 PDT 1998 Manish Singh <yosh@gimp.org>
|
||||||
|
|
||||||
* configure.in
|
* configure.in
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
|
1998-10-20 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||||
|
|
||||||
|
* configure.in: made the check for needed _ in module's func-names
|
||||||
|
work on solaris. (G_MODULE_NEED_USCORE must be set outside
|
||||||
|
AC_CACHE_VAL, dlopen(0,0) refused to work on solaris).
|
||||||
|
|
||||||
Tue Oct 20 03:32:58 PDT 1998 Manish Singh <yosh@gimp.org>
|
Tue Oct 20 03:32:58 PDT 1998 Manish Singh <yosh@gimp.org>
|
||||||
|
|
||||||
* configure.in
|
* configure.in
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
|
1998-10-20 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||||
|
|
||||||
|
* configure.in: made the check for needed _ in module's func-names
|
||||||
|
work on solaris. (G_MODULE_NEED_USCORE must be set outside
|
||||||
|
AC_CACHE_VAL, dlopen(0,0) refused to work on solaris).
|
||||||
|
|
||||||
Tue Oct 20 03:32:58 PDT 1998 Manish Singh <yosh@gimp.org>
|
Tue Oct 20 03:32:58 PDT 1998 Manish Singh <yosh@gimp.org>
|
||||||
|
|
||||||
* configure.in
|
* configure.in
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
|
1998-10-20 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||||
|
|
||||||
|
* configure.in: made the check for needed _ in module's func-names
|
||||||
|
work on solaris. (G_MODULE_NEED_USCORE must be set outside
|
||||||
|
AC_CACHE_VAL, dlopen(0,0) refused to work on solaris).
|
||||||
|
|
||||||
Tue Oct 20 03:32:58 PDT 1998 Manish Singh <yosh@gimp.org>
|
Tue Oct 20 03:32:58 PDT 1998 Manish Singh <yosh@gimp.org>
|
||||||
|
|
||||||
* configure.in
|
* configure.in
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
|
1998-10-20 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||||
|
|
||||||
|
* configure.in: made the check for needed _ in module's func-names
|
||||||
|
work on solaris. (G_MODULE_NEED_USCORE must be set outside
|
||||||
|
AC_CACHE_VAL, dlopen(0,0) refused to work on solaris).
|
||||||
|
|
||||||
Tue Oct 20 03:32:58 PDT 1998 Manish Singh <yosh@gimp.org>
|
Tue Oct 20 03:32:58 PDT 1998 Manish Singh <yosh@gimp.org>
|
||||||
|
|
||||||
* configure.in
|
* configure.in
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
|
1998-10-20 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||||
|
|
||||||
|
* configure.in: made the check for needed _ in module's func-names
|
||||||
|
work on solaris. (G_MODULE_NEED_USCORE must be set outside
|
||||||
|
AC_CACHE_VAL, dlopen(0,0) refused to work on solaris).
|
||||||
|
|
||||||
Tue Oct 20 03:32:58 PDT 1998 Manish Singh <yosh@gimp.org>
|
Tue Oct 20 03:32:58 PDT 1998 Manish Singh <yosh@gimp.org>
|
||||||
|
|
||||||
* configure.in
|
* configure.in
|
||||||
|
23
configure.in
23
configure.in
@ -433,25 +433,30 @@ if test "$G_MODULE_IMPL" = "G_MODULE_IMPL_DL"; then
|
|||||||
dnl *** check whether we need preceeding underscores
|
dnl *** check whether we need preceeding underscores
|
||||||
AC_MSG_CHECKING(for preceeding underscore in symbols)
|
AC_MSG_CHECKING(for preceeding underscore in symbols)
|
||||||
AC_CACHE_VAL(glib_cv_uscore,[
|
AC_CACHE_VAL(glib_cv_uscore,[
|
||||||
|
echo "int glib_underscore_test (void) { return 42; }" >plugin.c
|
||||||
|
./libtool --mode=compile $CC -c plugin.c >/dev/null 2>&1
|
||||||
AC_TRY_RUN([
|
AC_TRY_RUN([
|
||||||
#include <dlfcn.h>
|
#include <dlfcn.h>
|
||||||
int glib_underscore_test (void) { return 42; }
|
|
||||||
int main() {
|
int main() {
|
||||||
void *f1 = (void*)0, *f2 = (void*)0, *handle;
|
void *f1 = (void*)0, *f2 = (void*)0, *handle;
|
||||||
handle = dlopen ((void*)0, 0);
|
handle = dlopen ("./plugin.lo", RTLD_NOW );
|
||||||
if (handle) {
|
if (handle) {
|
||||||
f1 = dlsym (handle, "glib_underscore_test");
|
f1 = dlsym (handle, "glib_underscore_test");
|
||||||
f2 = dlsym (handle, "_glib_underscore_test");
|
f2 = dlsym (handle, "_glib_underscore_test");
|
||||||
} return (f2 && !f1);
|
} return (!f2 && f1);
|
||||||
}],
|
}],
|
||||||
glib_cv_uscore=yes
|
glib_cv_uscore=yes,
|
||||||
G_MODULE_NEED_USCORE=1
|
glib_cv_uscore=no,
|
||||||
,
|
)
|
||||||
glib_cv_uscore=no
|
rm -f plugin.c plugin.o plugin.lo
|
||||||
G_MODULE_NEED_USCORE=0
|
|
||||||
,)
|
|
||||||
])
|
])
|
||||||
AC_MSG_RESULT($glib_cv_uscore)
|
AC_MSG_RESULT($glib_cv_uscore)
|
||||||
|
if test "x$glib_cv_uscore" = "xyes"; then
|
||||||
|
G_MODULE_NEED_USCORE=1
|
||||||
|
else
|
||||||
|
G_MODULE_NEED_USCORE=0
|
||||||
|
fi
|
||||||
|
|
||||||
LDFLAGS="$LDFLAGS_orig"
|
LDFLAGS="$LDFLAGS_orig"
|
||||||
dnl *** check for having dlerror()
|
dnl *** check for having dlerror()
|
||||||
AC_CHECK_FUNC(dlerror,
|
AC_CHECK_FUNC(dlerror,
|
||||||
|
Loading…
Reference in New Issue
Block a user