makefiles: Hardcode the dll directory.

It's Wine-specific anyway.
This commit is contained in:
Alexandre Julliard 2024-06-24 13:57:34 +02:00
parent f0ee51026b
commit 0fb9e616bc
6 changed files with 11 additions and 16 deletions

6
configure vendored
View file

@ -868,7 +868,6 @@ CFLAGS
CC
SET_MAKE
srcdir
dlldir
host_os
host_vendor
host_cpu
@ -4674,8 +4673,6 @@ case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
dlldir=\${libdir}/wine
@ -6470,7 +6467,7 @@ MAKEDEP=$wine_makedep
RUNTESTFLAGS="-q -P wine"
SED_CMD="LC_ALL=C sed -e 's,@bindir@,\${bindir},g' -e 's,@dlldir@,\${dlldir},g' -e 's,@PACKAGE_STRING@,$PACKAGE_STRING,g' -e 's,@PACKAGE_VERSION@,$PACKAGE_VERSION,g'"
SED_CMD="LC_ALL=C sed -e 's,@bindir@,\${bindir},g' -e 's,@PACKAGE_STRING@,$PACKAGE_STRING,g' -e 's,@PACKAGE_VERSION@,$PACKAGE_VERSION,g'"
if test -n "$host_alias" -a "$host_alias" != "$build_alias"
@ -23975,7 +23972,6 @@ host = $host
host_cpu = $host_cpu
host_vendor = $host_vendor
host_os = $host_os
dlldir = $dlldir
srcdir = $srcdir
SET_MAKE = $SET_MAKE
CC = $CC

View file

@ -91,7 +91,6 @@ AC_ARG_WITH(wine64, AS_HELP_STRING([--with-wine64=DIR],[use the 64-bit Wine i
AC_CANONICAL_HOST
AC_SUBST(dlldir,[\${libdir}/wine])
AC_SUBST(srcdir)
dnl **** Check for some programs ****
@ -196,7 +195,7 @@ fi
AC_SUBST(toolsdir,[$wine_cv_toolsdir])
AC_SUBST(MAKEDEP,[$wine_makedep])
AC_SUBST(RUNTESTFLAGS,["-q -P wine"])
AC_SUBST(SED_CMD,["LC_ALL=C sed -e 's,@bindir@,\${bindir},g' -e 's,@dlldir@,\${dlldir},g' -e 's,@PACKAGE_STRING@,$PACKAGE_STRING,g' -e 's,@PACKAGE_VERSION@,$PACKAGE_VERSION,g'"])
AC_SUBST(SED_CMD,["LC_ALL=C sed -e 's,@bindir@,\${bindir},g' -e 's,@PACKAGE_STRING@,$PACKAGE_STRING,g' -e 's,@PACKAGE_VERSION@,$PACKAGE_VERSION,g'"])
if test -n "$host_alias" -a "$host_alias" != "$build_alias"
then

View file

@ -76,5 +76,5 @@ EXTRA_OBJS = unix/version.o
unix_loader_EXTRADEFS = \
-DBINDIR=\"${bindir}\" \
-DSYSTEMDLLPATH=\"${system_dllpath}\" \
-DDLL_TO_BINDIR=\"`${MAKEDEP} -R ${dlldir} ${bindir}`\" \
-DDLL_TO_BINDIR=\"`${MAKEDEP} -R ${libdir}/wine ${bindir}`\" \
-DBIN_TO_DATADIR=\"`${MAKEDEP} -R ${bindir} ${datadir}/wine`\"

View file

@ -16,7 +16,7 @@ UNIX_CFLAGS = -fPIE
preloader_EXTRADEFS = -fno-builtin
main_EXTRADEFS = -DDLLDIR=\"${dlldir}\" -DBIN_TO_DLLDIR=\"`${MAKEDEP} -R ${bindir} ${dlldir}`\"
main_EXTRADEFS = -DDLLDIR=\"${libdir}/wine\" -DBIN_TO_DLLDIR=\"`${MAKEDEP} -R ${bindir} ${libdir}/wine`\"
wine_OBJS = main.o
wine_DEPS = $(WINELOADER_DEPENDS)

View file

@ -2664,7 +2664,7 @@ static struct strarray get_removable_dirs( struct strarray files )
static void output_uninstall_rules( struct makefile *make )
{
static const char *dirs_order[] =
{ "$(includedir)", "$(mandir)", "$(datadir)", "$(dlldir)" };
{ "$(includedir)", "$(mandir)", "$(datadir)" };
struct strarray uninstall_dirs;
unsigned int i, j;
@ -3383,7 +3383,7 @@ static void output_fake_module( struct makefile *make, const char *spec_file )
if (make->disabled[arch]) return;
strarray_add( &make->all_targets[arch], name );
add_install_rule( make, make->module, arch, name, strmake( "d$(dlldir)/%s", name ));
add_install_rule( make, make->module, arch, name, strmake( "d$(libdir)/wine/%s", name ));
output( "%s:", obj_dir_path( make, name ));
if (spec_file) output_filename( spec_file );
@ -3460,7 +3460,7 @@ static void output_module( struct makefile *make, unsigned int arch )
strarray_add( &make->all_targets[link_arch], module_name );
if (make->data_only)
add_install_rule( make, make->module, link_arch, module_name,
strmake( "d$(dlldir)/%s%s", arch_pe_dirs[arch], make->module ));
strmake( "d$(libdir)/wine/%s%s", arch_pe_dirs[arch], make->module ));
else
add_install_rule( make, make->module, link_arch, module_name,
strmake( "%c%s%s%s", '0' + arch, arch_install_dirs[arch], make->module,
@ -4554,7 +4554,7 @@ int main( int argc, char *argv[] )
arch_dirs[0] = "";
arch_pe_dirs[0] = strmake( "%s-windows/", archs.str[0] );
arch_install_dirs[0] = unix_lib_supported ? strmake( "$(dlldir)/%s-unix/", archs.str[0] ) : "$(dlldir)/";
arch_install_dirs[0] = unix_lib_supported ? strmake( "$(libdir)/wine/%s-unix/", archs.str[0] ) : "$(libdir)/wine/";
strip_progs[0] = "\"$(STRIP)\"";
for (arch = 1; arch < archs.count; arch++)
@ -4564,7 +4564,7 @@ int main( int argc, char *argv[] )
strarray_add( &target_flags[arch], target );
arch_dirs[arch] = strmake( "%s-windows/", archs.str[arch] );
arch_pe_dirs[arch] = arch_dirs[arch];
arch_install_dirs[arch] = strmake( "$(dlldir)/%s", arch_dirs[arch] );
arch_install_dirs[arch] = strmake( "$(libdir)/wine/%s", arch_dirs[arch] );
strip_progs[arch] = strmake( "%s-strip", target );
dll_ext[arch] = "";
}

View file

@ -26,8 +26,8 @@ SOURCES = \
widl_EXTRADEFS = \
-DINCLUDEDIR="\"${includedir}\"" \
-DDLLDIR="\"${dlldir}\"" \
-DDLLDIR="\"${libdir}/wine\"" \
-DBIN_TO_INCLUDEDIR=\"`${MAKEDEP} -R ${bindir} ${includedir}`\" \
-DBIN_TO_DLLDIR=\"`${MAKEDEP} -R ${bindir} ${dlldir}`\"
-DBIN_TO_DLLDIR=\"`${MAKEDEP} -R ${bindir} ${libdir}/wine`\"
INSTALL_DEV = $(PROGRAMS)