makefiles: Pass the dll extension from configure.

This commit is contained in:
Alexandre Julliard 2023-06-15 10:21:16 +02:00
parent a58ec76989
commit 80fc252f18
3 changed files with 9 additions and 1 deletions

5
configure vendored
View file

@ -766,6 +766,7 @@ SUBDIRS
READELF
OTOOL
LDD
DLLEXT
WINEPRELOADER_LDFLAGS
WINELOADER_LDFLAGS
TOP_INSTALL_DEV
@ -9146,6 +9147,8 @@ WINELOADER_LDFLAGS=""
WINEPRELOADER_LDFLAGS=""
DLLEXT=".so"
LIBEXT="so"
# Extract the first word of "ldd", so it can be a program name with args.
set dummy ldd; ac_word=$2
@ -9437,6 +9440,7 @@ $ac_links:
case $host_os in
cygwin*|mingw32*)
LIBEXT="dll"
DLLEXT=""
EXTRACFLAGS="-D__WINE_PE_BUILD"
case $host_cpu in
*i[3456]86*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--disable-stdcall-fixup" >&5
@ -23204,6 +23208,7 @@ TOP_INSTALL_LIB = $TOP_INSTALL_LIB
TOP_INSTALL_DEV = $TOP_INSTALL_DEV
WINELOADER_LDFLAGS = $WINELOADER_LDFLAGS
WINEPRELOADER_LDFLAGS = $WINEPRELOADER_LDFLAGS
DLLEXT = $DLLEXT
LDD = $LDD
OTOOL = $OTOOL
READELF = $READELF

View file

@ -643,6 +643,7 @@ AC_SUBST(TOP_INSTALL_LIB,"")
AC_SUBST(TOP_INSTALL_DEV,"")
AC_SUBST(WINELOADER_LDFLAGS,"")
AC_SUBST(WINEPRELOADER_LDFLAGS,"")
AC_SUBST(DLLEXT,".so")
LIBEXT="so"
WINE_PATH_SONAME_TOOLS
WINE_CONFIG_HELPERS
@ -650,6 +651,7 @@ WINE_CONFIG_HELPERS
case $host_os in
cygwin*|mingw32*)
LIBEXT="dll"
DLLEXT=""
EXTRACFLAGS="-D__WINE_PE_BUILD"
dnl Disable stdcall fixups to catch prototype mismatches
case $host_cpu in

View file

@ -4407,7 +4407,7 @@ int main( int argc, char *argv[] )
tools_dir = get_expanded_make_variable( top_makefile, "toolsdir" );
tools_ext = get_expanded_make_variable( top_makefile, "toolsext" );
exe_ext = get_expanded_make_variable( top_makefile, "EXEEXT" );
dll_ext = (exe_ext && !strcmp( exe_ext, ".exe" )) ? "" : ".so";
dll_ext = get_expanded_make_variable( top_makefile, "DLLEXT" );
fontforge = get_expanded_make_variable( top_makefile, "FONTFORGE" );
convert = get_expanded_make_variable( top_makefile, "CONVERT" );
flex = get_expanded_make_variable( top_makefile, "FLEX" );
@ -4424,6 +4424,7 @@ int main( int argc, char *argv[] )
if (root_src_dir && !strcmp( root_src_dir, "." )) root_src_dir = NULL;
if (tools_dir && !strcmp( tools_dir, "." )) tools_dir = NULL;
if (!exe_ext) exe_ext = "";
if (!dll_ext) dll_ext = "";
if (!tools_ext) tools_ext = "";
strarray_add( &archs, get_expanded_make_variable( top_makefile, "HOST_ARCH" ));