configure: Remove some obsolete shared library checks.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
27ab5f7bf4
commit
ae06f74828
|
@ -7934,7 +7934,7 @@ done
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
DLLFLAGS="-D_REENTRANT"
|
DLLFLAGS=""
|
||||||
|
|
||||||
LDDLLFLAGS=""
|
LDDLLFLAGS=""
|
||||||
|
|
||||||
|
@ -7949,7 +7949,6 @@ WINELOADER_LDFLAGS=""
|
||||||
WINEPRELOADER_LDFLAGS=""
|
WINEPRELOADER_LDFLAGS=""
|
||||||
|
|
||||||
LIBEXT="so"
|
LIBEXT="so"
|
||||||
DLLEXT=".so"
|
|
||||||
# Extract the first word of "ldd", so it can be a program name with args.
|
# Extract the first word of "ldd", so it can be a program name with args.
|
||||||
set dummy ldd; ac_word=$2
|
set dummy ldd; ac_word=$2
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
||||||
|
@ -8313,7 +8312,6 @@ else
|
||||||
fi
|
fi
|
||||||
|
|
||||||
LIBEXT="dll"
|
LIBEXT="dll"
|
||||||
DLLEXT=""
|
|
||||||
case $host_cpu in
|
case $host_cpu in
|
||||||
*i[3456]86*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--disable-stdcall-fixup" >&5
|
*i[3456]86*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--disable-stdcall-fixup" >&5
|
||||||
$as_echo_n "checking whether the compiler supports -Wl,--disable-stdcall-fixup... " >&6; }
|
$as_echo_n "checking whether the compiler supports -Wl,--disable-stdcall-fixup... " >&6; }
|
||||||
|
@ -9318,90 +9316,10 @@ fi
|
||||||
DLLFLAGS="$DLLFLAGS -fPIC"
|
DLLFLAGS="$DLLFLAGS -fPIC"
|
||||||
LDDLLFLAGS="-fPIC" ;;
|
LDDLLFLAGS="-fPIC" ;;
|
||||||
esac
|
esac
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a GNU style ELF dll" >&5
|
LIBWINE_LDFLAGS="-shared -Wl,-soname,libwine.so.$libwine_soversion"
|
||||||
$as_echo_n "checking whether we can build a GNU style ELF dll... " >&6; }
|
|
||||||
if ${ac_cv_c_dll_gnuelf+:} false; then :
|
|
||||||
$as_echo_n "(cached) " >&6
|
|
||||||
else
|
|
||||||
ac_wine_try_cflags_saved=$CFLAGS
|
|
||||||
CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic"
|
|
||||||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
||||||
/* end confdefs.h. */
|
|
||||||
void myfunc() {}
|
|
||||||
_ACEOF
|
|
||||||
if ac_fn_c_try_link "$LINENO"; then :
|
|
||||||
ac_cv_cflags__fPIC__shared__Wl__Bsymbolic=yes
|
|
||||||
else
|
|
||||||
ac_cv_cflags__fPIC__shared__Wl__Bsymbolic=no
|
|
||||||
fi
|
|
||||||
rm -f core conftest.err conftest.$ac_objext \
|
|
||||||
conftest$ac_exeext conftest.$ac_ext
|
|
||||||
CFLAGS=$ac_wine_try_cflags_saved
|
|
||||||
if test "x$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic" = xyes; then :
|
|
||||||
ac_cv_c_dll_gnuelf="yes"
|
|
||||||
else
|
|
||||||
ac_cv_c_dll_gnuelf="no"
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_gnuelf" >&5
|
|
||||||
$as_echo "$ac_cv_c_dll_gnuelf" >&6; }
|
|
||||||
if test "$ac_cv_c_dll_gnuelf" = "yes"
|
|
||||||
then
|
|
||||||
LIBWINE_LDFLAGS="-shared"
|
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -shared -Wl,-soname,confest.so.1" >&5
|
|
||||||
$as_echo_n "checking whether the compiler supports -shared -Wl,-soname,confest.so.1... " >&6; }
|
|
||||||
if ${ac_cv_cflags__shared__Wl__soname_confest_so_1+:} false; then :
|
|
||||||
$as_echo_n "(cached) " >&6
|
|
||||||
else
|
|
||||||
ac_wine_try_cflags_saved=$CFLAGS
|
|
||||||
CFLAGS="$CFLAGS -shared -Wl,-soname,confest.so.1"
|
|
||||||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
||||||
/* end confdefs.h. */
|
|
||||||
int main(int argc, char **argv) { return 0; }
|
|
||||||
_ACEOF
|
|
||||||
if ac_fn_c_try_link "$LINENO"; then :
|
|
||||||
ac_cv_cflags__shared__Wl__soname_confest_so_1=yes
|
|
||||||
else
|
|
||||||
ac_cv_cflags__shared__Wl__soname_confest_so_1=no
|
|
||||||
fi
|
|
||||||
rm -f core conftest.err conftest.$ac_objext \
|
|
||||||
conftest$ac_exeext conftest.$ac_ext
|
|
||||||
CFLAGS=$ac_wine_try_cflags_saved
|
|
||||||
fi
|
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__shared__Wl__soname_confest_so_1" >&5
|
|
||||||
$as_echo "$ac_cv_cflags__shared__Wl__soname_confest_so_1" >&6; }
|
|
||||||
if test "x$ac_cv_cflags__shared__Wl__soname_confest_so_1" = xyes; then :
|
|
||||||
LIBWINE_LDFLAGS="-shared -Wl,-soname,libwine.so.$libwine_soversion"
|
|
||||||
else
|
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -shared -Wl,-h,confest.so.1" >&5
|
|
||||||
$as_echo_n "checking whether the compiler supports -shared -Wl,-h,confest.so.1... " >&6; }
|
|
||||||
if ${ac_cv_cflags__shared__Wl__h_confest_so_1+:} false; then :
|
|
||||||
$as_echo_n "(cached) " >&6
|
|
||||||
else
|
|
||||||
ac_wine_try_cflags_saved=$CFLAGS
|
|
||||||
CFLAGS="$CFLAGS -shared -Wl,-h,confest.so.1"
|
|
||||||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
||||||
/* end confdefs.h. */
|
|
||||||
int main(int argc, char **argv) { return 0; }
|
|
||||||
_ACEOF
|
|
||||||
if ac_fn_c_try_link "$LINENO"; then :
|
|
||||||
ac_cv_cflags__shared__Wl__h_confest_so_1=yes
|
|
||||||
else
|
|
||||||
ac_cv_cflags__shared__Wl__h_confest_so_1=no
|
|
||||||
fi
|
|
||||||
rm -f core conftest.err conftest.$ac_objext \
|
|
||||||
conftest$ac_exeext conftest.$ac_ext
|
|
||||||
CFLAGS=$ac_wine_try_cflags_saved
|
|
||||||
fi
|
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__shared__Wl__h_confest_so_1" >&5
|
|
||||||
$as_echo "$ac_cv_cflags__shared__Wl__h_confest_so_1" >&6; }
|
|
||||||
if test "x$ac_cv_cflags__shared__Wl__h_confest_so_1" = xyes; then :
|
|
||||||
LIBWINE_LDFLAGS="-shared -Wl,-h,libwine.so.$libwine_soversion"
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo '{ global: *; };' >conftest.map
|
echo '{ global: *; };' >conftest.map
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -shared -Wl,--version-script=conftest.map" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -shared -Wl,--version-script=conftest.map" >&5
|
||||||
$as_echo_n "checking whether the compiler supports -shared -Wl,--version-script=conftest.map... " >&6; }
|
$as_echo_n "checking whether the compiler supports -shared -Wl,--version-script=conftest.map... " >&6; }
|
||||||
if ${ac_cv_cflags__shared__Wl___version_script_conftest_map+:} false; then :
|
if ${ac_cv_cflags__shared__Wl___version_script_conftest_map+:} false; then :
|
||||||
$as_echo_n "(cached) " >&6
|
$as_echo_n "(cached) " >&6
|
||||||
|
@ -9426,9 +9344,9 @@ $as_echo "$ac_cv_cflags__shared__Wl___version_script_conftest_map" >&6; }
|
||||||
if test "x$ac_cv_cflags__shared__Wl___version_script_conftest_map" = xyes; then :
|
if test "x$ac_cv_cflags__shared__Wl___version_script_conftest_map" = xyes; then :
|
||||||
LIBWINE_LDFLAGS="$LIBWINE_LDFLAGS -Wl,--version-script=\$(srcdir)/wine.map"
|
LIBWINE_LDFLAGS="$LIBWINE_LDFLAGS -Wl,--version-script=\$(srcdir)/wine.map"
|
||||||
fi
|
fi
|
||||||
rm -f conftest.map
|
rm -f conftest.map
|
||||||
|
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--export-dynamic" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--export-dynamic" >&5
|
||||||
$as_echo_n "checking whether the compiler supports -Wl,--export-dynamic... " >&6; }
|
$as_echo_n "checking whether the compiler supports -Wl,--export-dynamic... " >&6; }
|
||||||
if ${ac_cv_cflags__Wl___export_dynamic+:} false; then :
|
if ${ac_cv_cflags__Wl___export_dynamic+:} false; then :
|
||||||
$as_echo_n "(cached) " >&6
|
$as_echo_n "(cached) " >&6
|
||||||
|
@ -9453,11 +9371,11 @@ $as_echo "$ac_cv_cflags__Wl___export_dynamic" >&6; }
|
||||||
if test "x$ac_cv_cflags__Wl___export_dynamic" = xyes; then :
|
if test "x$ac_cv_cflags__Wl___export_dynamic" = xyes; then :
|
||||||
WINELOADER_LDFLAGS="-Wl,--export-dynamic"
|
WINELOADER_LDFLAGS="-Wl,--export-dynamic"
|
||||||
fi
|
fi
|
||||||
WINEPRELOADER_LDFLAGS="-static -nostartfiles -nodefaultlibs -Wl,-Ttext=0x7d400000"
|
WINEPRELOADER_LDFLAGS="-static -nostartfiles -nodefaultlibs -Wl,-Ttext=0x7d400000"
|
||||||
|
|
||||||
case $host_cpu in
|
case $host_cpu in
|
||||||
*i[3456789]86* | x86_64 | *aarch64* | arm*)
|
*i[3456789]86* | x86_64 | *aarch64* | arm*)
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,-Ttext-segment=0x7bc00000" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,-Ttext-segment=0x7bc00000" >&5
|
||||||
$as_echo_n "checking whether the compiler supports -Wl,-Ttext-segment=0x7bc00000... " >&6; }
|
$as_echo_n "checking whether the compiler supports -Wl,-Ttext-segment=0x7bc00000... " >&6; }
|
||||||
if ${ac_cv_cflags__Wl__Ttext_segment_0x7bc00000+:} false; then :
|
if ${ac_cv_cflags__Wl__Ttext_segment_0x7bc00000+:} false; then :
|
||||||
$as_echo_n "(cached) " >&6
|
$as_echo_n "(cached) " >&6
|
||||||
|
@ -9481,9 +9399,9 @@ fi
|
||||||
$as_echo "$ac_cv_cflags__Wl__Ttext_segment_0x7bc00000" >&6; }
|
$as_echo "$ac_cv_cflags__Wl__Ttext_segment_0x7bc00000" >&6; }
|
||||||
if test "x$ac_cv_cflags__Wl__Ttext_segment_0x7bc00000" = xyes; then :
|
if test "x$ac_cv_cflags__Wl__Ttext_segment_0x7bc00000" = xyes; then :
|
||||||
case $host_os in
|
case $host_os in
|
||||||
freebsd* | kfreebsd*-gnu) WINELOADER_LDFLAGS="$WINELOADER_LDFLAGS -Wl,-Ttext-segment=0x60000000" ;;
|
freebsd* | kfreebsd*-gnu) WINELOADER_LDFLAGS="$WINELOADER_LDFLAGS -Wl,-Ttext-segment=0x60000000" ;;
|
||||||
*) WINELOADER_LDFLAGS="$WINELOADER_LDFLAGS -Wl,-Ttext-segment=0x7d000000" ;;
|
*) WINELOADER_LDFLAGS="$WINELOADER_LDFLAGS -Wl,-Ttext-segment=0x7d000000" ;;
|
||||||
esac
|
esac
|
||||||
else
|
else
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--section-start,.interp=0x7d000400" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--section-start,.interp=0x7d000400" >&5
|
||||||
$as_echo_n "checking whether the compiler supports -Wl,--section-start,.interp=0x7d000400... " >&6; }
|
$as_echo_n "checking whether the compiler supports -Wl,--section-start,.interp=0x7d000400... " >&6; }
|
||||||
|
@ -9509,11 +9427,11 @@ fi
|
||||||
$as_echo "$ac_cv_cflags__Wl___section_start__interp_0x7d000400" >&6; }
|
$as_echo "$ac_cv_cflags__Wl___section_start__interp_0x7d000400" >&6; }
|
||||||
if test "x$ac_cv_cflags__Wl___section_start__interp_0x7d000400" = xyes; then :
|
if test "x$ac_cv_cflags__Wl___section_start__interp_0x7d000400" = xyes; then :
|
||||||
case $host_os in
|
case $host_os in
|
||||||
freebsd* | kfreebsd*-gnu) WINELOADER_LDFLAGS="$WINELOADER_LDFLAGS -Wl,--section-start,.interp=0x60000400" ;;
|
freebsd* | kfreebsd*-gnu) WINELOADER_LDFLAGS="$WINELOADER_LDFLAGS -Wl,--section-start,.interp=0x60000400" ;;
|
||||||
*) WINELOADER_LDFLAGS="$WINELOADER_LDFLAGS -Wl,--section-start,.interp=0x7d000400" ;;
|
*) WINELOADER_LDFLAGS="$WINELOADER_LDFLAGS -Wl,--section-start,.interp=0x7d000400" ;;
|
||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
# Extract the first word of "prelink", so it can be a program name with args.
|
# Extract the first word of "prelink", so it can be a program name with args.
|
||||||
set dummy prelink; ac_word=$2
|
set dummy prelink; ac_word=$2
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
||||||
$as_echo_n "checking for $ac_word... " >&6; }
|
$as_echo_n "checking for $ac_word... " >&6; }
|
||||||
|
@ -9554,12 +9472,12 @@ $as_echo "no" >&6; }
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
if test "x$PRELINK" = xfalse
|
if test "x$PRELINK" = xfalse
|
||||||
then
|
then
|
||||||
as_fn_append wine_warnings "|prelink not found and linker does not support relocation, base address of core dlls won't be set correctly."
|
as_fn_append wine_warnings "|prelink not found and linker does not support relocation, base address of core dlls won't be set correctly."
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,-z,max-page-size=0x1000" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,-z,max-page-size=0x1000" >&5
|
||||||
$as_echo_n "checking whether the compiler supports -Wl,-z,max-page-size=0x1000... " >&6; }
|
$as_echo_n "checking whether the compiler supports -Wl,-z,max-page-size=0x1000... " >&6; }
|
||||||
if ${ac_cv_cflags__Wl__z_max_page_size_0x1000+:} false; then :
|
if ${ac_cv_cflags__Wl__z_max_page_size_0x1000+:} false; then :
|
||||||
$as_echo_n "(cached) " >&6
|
$as_echo_n "(cached) " >&6
|
||||||
|
@ -9584,42 +9502,8 @@ $as_echo "$ac_cv_cflags__Wl__z_max_page_size_0x1000" >&6; }
|
||||||
if test "x$ac_cv_cflags__Wl__z_max_page_size_0x1000" = xyes; then :
|
if test "x$ac_cv_cflags__Wl__z_max_page_size_0x1000" = xyes; then :
|
||||||
WINELOADER_LDFLAGS="$WINELOADER_LDFLAGS -Wl,-z,max-page-size=0x1000"
|
WINELOADER_LDFLAGS="$WINELOADER_LDFLAGS -Wl,-z,max-page-size=0x1000"
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
else
|
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a UnixWare (Solaris) dll" >&5
|
|
||||||
$as_echo_n "checking whether we can build a UnixWare (Solaris) dll... " >&6; }
|
|
||||||
if ${ac_cv_c_dll_unixware+:} false; then :
|
|
||||||
$as_echo_n "(cached) " >&6
|
|
||||||
else
|
|
||||||
ac_wine_try_cflags_saved=$CFLAGS
|
|
||||||
CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
|
|
||||||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
||||||
/* end confdefs.h. */
|
|
||||||
void myfunc() {}
|
|
||||||
_ACEOF
|
|
||||||
if ac_fn_c_try_link "$LINENO"; then :
|
|
||||||
ac_cv_cflags__fPIC__Wl__G__h_conftest_so_1_0__B_symbolic=yes
|
|
||||||
else
|
|
||||||
ac_cv_cflags__fPIC__Wl__G__h_conftest_so_1_0__B_symbolic=no
|
|
||||||
fi
|
|
||||||
rm -f core conftest.err conftest.$ac_objext \
|
|
||||||
conftest$ac_exeext conftest.$ac_ext
|
|
||||||
CFLAGS=$ac_wine_try_cflags_saved
|
|
||||||
if test "x$ac_cv_cflags__fPIC__Wl__G__h_conftest_so_1_0__B_symbolic" = xyes; then :
|
|
||||||
ac_cv_c_dll_unixware="yes"
|
|
||||||
else
|
|
||||||
ac_cv_c_dll_unixware="no"
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_unixware" >&5
|
|
||||||
$as_echo "$ac_cv_c_dll_unixware" >&6; }
|
|
||||||
if test "$ac_cv_c_dll_unixware" = "yes"
|
|
||||||
then
|
|
||||||
LIBWINE_LDFLAGS="-Wl,-G,-h,libwine.so.$libwine_soversion"
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
LIBWINE_SHAREDLIB="libwine.so.$libwine_version"
|
LIBWINE_SHAREDLIB="libwine.so.$libwine_version"
|
||||||
|
|
||||||
LIBWINE_DEPENDS="wine.map"
|
LIBWINE_DEPENDS="wine.map"
|
||||||
|
|
81
configure.ac
81
configure.ac
|
@ -698,7 +698,7 @@ AC_CHECK_HEADERS([libprocstat.h],,,
|
||||||
|
|
||||||
dnl **** Check for working dll ****
|
dnl **** Check for working dll ****
|
||||||
|
|
||||||
AC_SUBST(DLLFLAGS,"-D_REENTRANT")
|
AC_SUBST(DLLFLAGS,"")
|
||||||
AC_SUBST(LDDLLFLAGS,"")
|
AC_SUBST(LDDLLFLAGS,"")
|
||||||
AC_SUBST(LDEXECFLAGS,"")
|
AC_SUBST(LDEXECFLAGS,"")
|
||||||
AC_SUBST(TOP_INSTALL_LIB,"")
|
AC_SUBST(TOP_INSTALL_LIB,"")
|
||||||
|
@ -706,7 +706,6 @@ AC_SUBST(TOP_INSTALL_DEV,"")
|
||||||
AC_SUBST(WINELOADER_LDFLAGS,"")
|
AC_SUBST(WINELOADER_LDFLAGS,"")
|
||||||
AC_SUBST(WINEPRELOADER_LDFLAGS,"")
|
AC_SUBST(WINEPRELOADER_LDFLAGS,"")
|
||||||
LIBEXT="so"
|
LIBEXT="so"
|
||||||
DLLEXT=".so"
|
|
||||||
WINE_PATH_SONAME_TOOLS
|
WINE_PATH_SONAME_TOOLS
|
||||||
WINE_CONFIG_HELPERS
|
WINE_CONFIG_HELPERS
|
||||||
|
|
||||||
|
@ -719,7 +718,6 @@ case $host_os in
|
||||||
cygwin*|mingw32*)
|
cygwin*|mingw32*)
|
||||||
AC_CHECK_TOOL(DLLTOOL,dlltool,false)
|
AC_CHECK_TOOL(DLLTOOL,dlltool,false)
|
||||||
LIBEXT="dll"
|
LIBEXT="dll"
|
||||||
DLLEXT=""
|
|
||||||
dnl Disable stdcall fixups to catch prototype mismatches
|
dnl Disable stdcall fixups to catch prototype mismatches
|
||||||
case $host_cpu in
|
case $host_cpu in
|
||||||
*i[[3456]]86*) WINE_TRY_CFLAGS([-Wl,--disable-stdcall-fixup],
|
*i[[3456]]86*) WINE_TRY_CFLAGS([-Wl,--disable-stdcall-fixup],
|
||||||
|
@ -904,57 +902,38 @@ case $host_os in
|
||||||
DLLFLAGS="$DLLFLAGS -fPIC"
|
DLLFLAGS="$DLLFLAGS -fPIC"
|
||||||
LDDLLFLAGS="-fPIC" ;;
|
LDDLLFLAGS="-fPIC" ;;
|
||||||
esac
|
esac
|
||||||
AC_CACHE_CHECK([whether we can build a GNU style ELF dll], ac_cv_c_dll_gnuelf,
|
LIBWINE_LDFLAGS="-shared -Wl,-soname,libwine.so.$libwine_soversion"
|
||||||
[WINE_TRY_SHLIB_FLAGS([-fPIC -shared -Wl,-Bsymbolic],
|
|
||||||
ac_cv_c_dll_gnuelf="yes",ac_cv_c_dll_gnuelf="no")])
|
|
||||||
if test "$ac_cv_c_dll_gnuelf" = "yes"
|
|
||||||
then
|
|
||||||
LIBWINE_LDFLAGS="-shared"
|
|
||||||
WINE_TRY_CFLAGS([-shared -Wl,-soname,confest.so.1],
|
|
||||||
[LIBWINE_LDFLAGS="-shared -Wl,-soname,libwine.so.$libwine_soversion"],
|
|
||||||
[WINE_TRY_CFLAGS([-shared -Wl,-h,confest.so.1],
|
|
||||||
[LIBWINE_LDFLAGS="-shared -Wl,-h,libwine.so.$libwine_soversion"])])
|
|
||||||
|
|
||||||
echo '{ global: *; };' >conftest.map
|
echo '{ global: *; };' >conftest.map
|
||||||
WINE_TRY_CFLAGS([-shared -Wl,--version-script=conftest.map],
|
WINE_TRY_CFLAGS([-shared -Wl,--version-script=conftest.map],
|
||||||
[LIBWINE_LDFLAGS="$LIBWINE_LDFLAGS -Wl,--version-script=\$(srcdir)/wine.map"])
|
[LIBWINE_LDFLAGS="$LIBWINE_LDFLAGS -Wl,--version-script=\$(srcdir)/wine.map"])
|
||||||
rm -f conftest.map
|
rm -f conftest.map
|
||||||
|
|
||||||
WINE_TRY_CFLAGS([-Wl,--export-dynamic],
|
WINE_TRY_CFLAGS([-Wl,--export-dynamic],
|
||||||
[WINELOADER_LDFLAGS="-Wl,--export-dynamic"])
|
[WINELOADER_LDFLAGS="-Wl,--export-dynamic"])
|
||||||
WINEPRELOADER_LDFLAGS="-static -nostartfiles -nodefaultlibs -Wl,-Ttext=0x7d400000"
|
WINEPRELOADER_LDFLAGS="-static -nostartfiles -nodefaultlibs -Wl,-Ttext=0x7d400000"
|
||||||
|
|
||||||
case $host_cpu in
|
case $host_cpu in
|
||||||
*i[[3456789]]86* | x86_64 | *aarch64* | arm*)
|
*i[[3456789]]86* | x86_64 | *aarch64* | arm*)
|
||||||
WINE_TRY_CFLAGS([-Wl,-Ttext-segment=0x7bc00000],
|
WINE_TRY_CFLAGS([-Wl,-Ttext-segment=0x7bc00000],
|
||||||
[case $host_os in
|
[case $host_os in
|
||||||
freebsd* | kfreebsd*-gnu) WINELOADER_LDFLAGS="$WINELOADER_LDFLAGS -Wl,-Ttext-segment=0x60000000" ;;
|
freebsd* | kfreebsd*-gnu) WINELOADER_LDFLAGS="$WINELOADER_LDFLAGS -Wl,-Ttext-segment=0x60000000" ;;
|
||||||
*) WINELOADER_LDFLAGS="$WINELOADER_LDFLAGS -Wl,-Ttext-segment=0x7d000000" ;;
|
*) WINELOADER_LDFLAGS="$WINELOADER_LDFLAGS -Wl,-Ttext-segment=0x7d000000" ;;
|
||||||
esac],
|
esac],
|
||||||
[WINE_TRY_CFLAGS([-Wl,--section-start,.interp=0x7d000400],
|
[WINE_TRY_CFLAGS([-Wl,--section-start,.interp=0x7d000400],
|
||||||
[case $host_os in
|
[case $host_os in
|
||||||
freebsd* | kfreebsd*-gnu) WINELOADER_LDFLAGS="$WINELOADER_LDFLAGS -Wl,--section-start,.interp=0x60000400" ;;
|
freebsd* | kfreebsd*-gnu) WINELOADER_LDFLAGS="$WINELOADER_LDFLAGS -Wl,--section-start,.interp=0x60000400" ;;
|
||||||
*) WINELOADER_LDFLAGS="$WINELOADER_LDFLAGS -Wl,--section-start,.interp=0x7d000400" ;;
|
*) WINELOADER_LDFLAGS="$WINELOADER_LDFLAGS -Wl,--section-start,.interp=0x7d000400" ;;
|
||||||
esac])
|
esac])
|
||||||
AC_PATH_PROG(PRELINK, prelink, false, [/sbin /usr/sbin $PATH])
|
AC_PATH_PROG(PRELINK, prelink, false, [/sbin /usr/sbin $PATH])
|
||||||
if test "x$PRELINK" = xfalse
|
if test "x$PRELINK" = xfalse
|
||||||
then
|
then
|
||||||
WINE_WARNING([prelink not found and linker does not support relocation, base address of core dlls won't be set correctly.])
|
WINE_WARNING([prelink not found and linker does not support relocation, base address of core dlls won't be set correctly.])
|
||||||
fi])
|
fi])
|
||||||
WINE_TRY_CFLAGS([-Wl,-z,max-page-size=0x1000],
|
WINE_TRY_CFLAGS([-Wl,-z,max-page-size=0x1000],
|
||||||
[WINELOADER_LDFLAGS="$WINELOADER_LDFLAGS -Wl,-z,max-page-size=0x1000"])
|
[WINELOADER_LDFLAGS="$WINELOADER_LDFLAGS -Wl,-z,max-page-size=0x1000"])
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
else
|
|
||||||
AC_CACHE_CHECK(whether we can build a UnixWare (Solaris) dll, ac_cv_c_dll_unixware,
|
|
||||||
[WINE_TRY_SHLIB_FLAGS([-fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic],
|
|
||||||
ac_cv_c_dll_unixware="yes",ac_cv_c_dll_unixware="no")])
|
|
||||||
if test "$ac_cv_c_dll_unixware" = "yes"
|
|
||||||
then
|
|
||||||
LIBWINE_LDFLAGS="-Wl,-G,-h,libwine.so.$libwine_soversion"
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
AC_SUBST(LIBWINE_SHAREDLIB,"libwine.so.$libwine_version")
|
AC_SUBST(LIBWINE_SHAREDLIB,"libwine.so.$libwine_version")
|
||||||
AC_SUBST(LIBWINE_DEPENDS,"wine.map")
|
AC_SUBST(LIBWINE_DEPENDS,"wine.map")
|
||||||
TOP_INSTALL_LIB="$TOP_INSTALL_LIB libs/wine/libwine.so.$libwine_version libs/wine/libwine.so.$libwine_soversion"
|
TOP_INSTALL_LIB="$TOP_INSTALL_LIB libs/wine/libwine.so.$libwine_version libs/wine/libwine.so.$libwine_soversion"
|
||||||
|
|
Loading…
Reference in New Issue