Commit 197b5e31 authored by Pierre d'Herbemont's avatar Pierre d'Herbemont Committed by Alexandre Julliard

- strip support for darwin

- WINE_GET_SONAME support for darwin
parent 7c1ae164
......@@ -38,12 +38,12 @@ AC_CACHE_CHECK([for -l$1 soname], ac_cv_lib_soname_$1,
[ac_get_soname_save_LIBS=$LIBS
LIBS="-l$1 $3 $LIBS"
AC_LINK_IFELSE([AC_LANG_CALL([], [$2])],
[ac_cv_lib_soname_$1=`$ac_cv_path_LDD conftest$ac_exeext | grep lib$1\\.so | sed 's/^.*\(lib$1\.so[[^ ]]*\).*$/\1/'`
[ac_cv_lib_soname_$1=`$ac_cv_path_LDD conftest$ac_exeext | grep lib$1\\.$LIBEXT | sed "s/^.*\(lib$1\.$LIBEXT[[^ ]]*\).*$/\1/"`
if test "x$ac_cv_lib_soname_$1" = "x"
then
ac_cv_lib_soname_$1="lib$1.so"
ac_cv_lib_soname_$1="lib$1.$LIBEXT"
fi],
[ac_cv_lib_soname_$1="lib$1.so"])
[ac_cv_lib_soname_$1="lib$1.$LIBEXT"])
LIBS=$ac_get_soname_save_LIBS])
if test "x$ac_cv_lib_soname_$1" != xNONE
then AC_DEFINE_UNQUOTED(AS_TR_CPP(SONAME_LIB$1),"$ac_cv_lib_soname_$1",
......
......@@ -933,6 +933,7 @@ case $host_os in
LDDLLFLAGS="-bundle -flat_namespace -undefined suppress"
LDSHARED="\$(CC) -dynamiclib"
CFLAGS="$CFLAGS -ffixed-r13 -no-cpp-precomp"
STRIP="$STRIP -u -r"
fi
fi
fi
......@@ -988,7 +989,7 @@ esac
dnl **** Get the soname for libraries that we load dynamically ****
if test "$LIBEXT" = "so"
if test "$LIBEXT" = "so" -o "$LIBEXT" = "dylib"
then
WINE_GET_SONAME(X11,XCreateWindow,[$X_LIBS $X_EXTRA_LIBS])
WINE_GET_SONAME(Xext,XextCreateExtension,[$X_LIBS -lX11 $X_EXTRA_LIBS])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment