Commit a5aaa410 authored by Alexandre Julliard's avatar Alexandre Julliard

makefiles: Install libwine into the architecture-specific directory.

parent 2801d634
...@@ -5868,7 +5868,6 @@ if test "x$enable_win64" = "xyes" ...@@ -5868,7 +5868,6 @@ if test "x$enable_win64" = "xyes"
then then
test -z "$with_wine64" || as_fn_error $? "--enable-win64 and --with-wine64 are mutually exclusive. test -z "$with_wine64" || as_fn_error $? "--enable-win64 and --with-wine64 are mutually exclusive.
--enable-win64 should be used in the 64-bit build tree, --with-wine64 in the 32-bit Wow64 build tree." "$LINENO" 5 --enable-win64 should be used in the 64-bit build tree, --with-wine64 in the 32-bit Wow64 build tree." "$LINENO" 5
test "x$libdir" != "x\${exec_prefix}/lib" || libdir="\${exec_prefix}/lib64"
fi fi
case $host_cpu in case $host_cpu in
......
...@@ -235,7 +235,6 @@ if test "x$enable_win64" = "xyes" ...@@ -235,7 +235,6 @@ if test "x$enable_win64" = "xyes"
then then
test -z "$with_wine64" || AC_MSG_ERROR([--enable-win64 and --with-wine64 are mutually exclusive. test -z "$with_wine64" || AC_MSG_ERROR([--enable-win64 and --with-wine64 are mutually exclusive.
--enable-win64 should be used in the 64-bit build tree, --with-wine64 in the 32-bit Wow64 build tree.]) --enable-win64 should be used in the 64-bit build tree, --with-wine64 in the 32-bit Wow64 build tree.])
test "x$libdir" != "x\${exec_prefix}/lib" || libdir="\${exec_prefix}/lib64"
fi fi
dnl Normalize CPU architecture dnl Normalize CPU architecture
......
...@@ -977,7 +977,7 @@ static void load_libwine(void) ...@@ -977,7 +977,7 @@ static void load_libwine(void)
void *handle; void *handle;
if (build_dir) path = build_path( build_dir, "libs/wine/" LIBWINE ); if (build_dir) path = build_path( build_dir, "libs/wine/" LIBWINE );
else path = build_path( dll_dir, "../" LIBWINE ); else path = build_path( ntdll_dir, LIBWINE );
handle = dlopen( path, RTLD_NOW ); handle = dlopen( path, RTLD_NOW );
free( path ); free( path );
......
...@@ -3525,14 +3525,12 @@ static void output_shared_lib( struct makefile *make ) ...@@ -3525,14 +3525,12 @@ static void output_shared_lib( struct makefile *make )
output_filenames( all_libs ); output_filenames( all_libs );
output_filename( "$(LDFLAGS)" ); output_filename( "$(LDFLAGS)" );
output( "\n" ); output( "\n" );
add_install_rule( make, make->sharedlib, make->sharedlib, add_install_rule( make, make->sharedlib, make->sharedlib, strmake( "p%s/%s", so_dir, make->sharedlib ));
strmake( "p$(libdir)/%s", make->sharedlib ));
for (i = 1; i < names.count; i++) for (i = 1; i < names.count; i++)
{ {
output( "%s: %s\n", obj_dir_path( make, names.str[i] ), obj_dir_path( make, names.str[i-1] )); output( "%s: %s\n", obj_dir_path( make, names.str[i] ), obj_dir_path( make, names.str[i-1] ));
output_symlink_rule( names.str[i-1], obj_dir_path( make, names.str[i] ), 0 ); output_symlink_rule( names.str[i-1], obj_dir_path( make, names.str[i] ), 0 );
add_install_rule( make, names.str[i], names.str[i-1], add_install_rule( make, names.str[i], names.str[i-1], strmake( "y%s/%s", so_dir, names.str[i] ));
strmake( "y$(libdir)/%s", names.str[i] ));
} }
strarray_addall( &make->all_targets, names ); strarray_addall( &make->all_targets, names );
} }
......
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