Commit 1fa7710f authored by Alexandre Julliard's avatar Alexandre Julliard

makefiles: Get rid of the DLLPREFIX variable.

Android libraries will be handled differently. Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent d9e95993
...@@ -52,7 +52,6 @@ LIBS = @LIBS@ ...@@ -52,7 +52,6 @@ LIBS = @LIBS@
BISON = @BISON@ BISON = @BISON@
FLEX = @FLEX@ FLEX = @FLEX@
EXEEXT = @EXEEXT@ EXEEXT = @EXEEXT@
DLLPREFIX = @DLLPREFIX@
TOOLSEXT = @TOOLSEXT@ TOOLSEXT = @TOOLSEXT@
DLLTOOL = @DLLTOOL@ DLLTOOL = @DLLTOOL@
AR = @AR@ AR = @AR@
......
...@@ -432,10 +432,10 @@ __uninstall__: $ac_dir/uninstall" ...@@ -432,10 +432,10 @@ __uninstall__: $ac_dir/uninstall"
then then
wine_fn_append_rule \ wine_fn_append_rule \
"$ac_dir/install-lib:: $ac_dir "$ac_dir/install-lib:: $ac_dir
\$(INSTALL_PROGRAM) $ac_dir/$ac_dll$DLLEXT \$(DESTDIR)\$(dlldir)/$DLLPREFIX$ac_dll$DLLEXT \$(INSTALL_PROGRAM) $ac_dir/$ac_dll$DLLEXT \$(DESTDIR)\$(dlldir)/$ac_dll$DLLEXT
\$(INSTALL_DATA) $ac_dir/$ac_dll.fake \$(DESTDIR)\$(fakedlldir)/$ac_dll \$(INSTALL_DATA) $ac_dir/$ac_dll.fake \$(DESTDIR)\$(fakedlldir)/$ac_dll
$ac_dir/uninstall:: $ac_dir/uninstall::
\$(RM) \$(DESTDIR)\$(dlldir)/$DLLPREFIX$ac_dll$DLLEXT \$(DESTDIR)\$(fakedlldir)/$ac_dll" \$(RM) \$(DESTDIR)\$(dlldir)/$ac_dll$DLLEXT \$(DESTDIR)\$(fakedlldir)/$ac_dll"
else else
wine_fn_append_rule \ wine_fn_append_rule \
"$ac_dir/install-lib:: $ac_dir "$ac_dir/install-lib:: $ac_dir
...@@ -562,10 +562,10 @@ __uninstall__: $ac_dir/uninstall" ...@@ -562,10 +562,10 @@ __uninstall__: $ac_dir/uninstall"
then then
wine_fn_append_rule \ wine_fn_append_rule \
"$ac_dir/install:: $ac_dir "$ac_dir/install:: $ac_dir
\$(INSTALL_PROGRAM) $ac_dir/$ac_program$DLLEXT \$(DESTDIR)\$(dlldir)/$DLLPREFIX$ac_program$DLLEXT \$(INSTALL_PROGRAM) $ac_dir/$ac_program$DLLEXT \$(DESTDIR)\$(dlldir)/$ac_program$DLLEXT
\$(INSTALL_DATA) $ac_dir/$ac_program.fake \$(DESTDIR)\$(fakedlldir)/$ac_program \$(INSTALL_DATA) $ac_dir/$ac_program.fake \$(DESTDIR)\$(fakedlldir)/$ac_program
$ac_dir/uninstall:: $ac_dir/uninstall::
\$(RM) \$(DESTDIR)\$(dlldir)/$DLLPREFIX$ac_program$DLLEXT \$(DESTDIR)\$(fakedlldir)/$ac_program" \$(RM) \$(DESTDIR)\$(dlldir)/$ac_program$DLLEXT \$(DESTDIR)\$(fakedlldir)/$ac_program"
if test -z "$with_wine64" && wine_fn_has_flag installbin if test -z "$with_wine64" && wine_fn_has_flag installbin
then then
......
...@@ -713,7 +713,6 @@ LDD ...@@ -713,7 +713,6 @@ LDD
LDRPATH_LOCAL LDRPATH_LOCAL
LDRPATH_INSTALL LDRPATH_INSTALL
DLLFLAGS DLLFLAGS
DLLPREFIX
dlldir dlldir
CPP CPP
OPENGL_LIBS OPENGL_LIBS
...@@ -7135,8 +7134,6 @@ done ...@@ -7135,8 +7134,6 @@ done
dlldir="\${libdir}/wine" dlldir="\${libdir}/wine"
DLLPREFIX=""
DLLFLAGS="-D_REENTRANT" DLLFLAGS="-D_REENTRANT"
LDRPATH_INSTALL="" LDRPATH_INSTALL=""
...@@ -7622,10 +7619,10 @@ __uninstall__: $ac_dir/uninstall" ...@@ -7622,10 +7619,10 @@ __uninstall__: $ac_dir/uninstall"
then then
wine_fn_append_rule \ wine_fn_append_rule \
"$ac_dir/install-lib:: $ac_dir "$ac_dir/install-lib:: $ac_dir
\$(INSTALL_PROGRAM) $ac_dir/$ac_dll$DLLEXT \$(DESTDIR)\$(dlldir)/$DLLPREFIX$ac_dll$DLLEXT \$(INSTALL_PROGRAM) $ac_dir/$ac_dll$DLLEXT \$(DESTDIR)\$(dlldir)/$ac_dll$DLLEXT
\$(INSTALL_DATA) $ac_dir/$ac_dll.fake \$(DESTDIR)\$(fakedlldir)/$ac_dll \$(INSTALL_DATA) $ac_dir/$ac_dll.fake \$(DESTDIR)\$(fakedlldir)/$ac_dll
$ac_dir/uninstall:: $ac_dir/uninstall::
\$(RM) \$(DESTDIR)\$(dlldir)/$DLLPREFIX$ac_dll$DLLEXT \$(DESTDIR)\$(fakedlldir)/$ac_dll" \$(RM) \$(DESTDIR)\$(dlldir)/$ac_dll$DLLEXT \$(DESTDIR)\$(fakedlldir)/$ac_dll"
else else
wine_fn_append_rule \ wine_fn_append_rule \
"$ac_dir/install-lib:: $ac_dir "$ac_dir/install-lib:: $ac_dir
...@@ -7755,10 +7752,10 @@ __uninstall__: $ac_dir/uninstall" ...@@ -7755,10 +7752,10 @@ __uninstall__: $ac_dir/uninstall"
then then
wine_fn_append_rule \ wine_fn_append_rule \
"$ac_dir/install:: $ac_dir "$ac_dir/install:: $ac_dir
\$(INSTALL_PROGRAM) $ac_dir/$ac_program$DLLEXT \$(DESTDIR)\$(dlldir)/$DLLPREFIX$ac_program$DLLEXT \$(INSTALL_PROGRAM) $ac_dir/$ac_program$DLLEXT \$(DESTDIR)\$(dlldir)/$ac_program$DLLEXT
\$(INSTALL_DATA) $ac_dir/$ac_program.fake \$(DESTDIR)\$(fakedlldir)/$ac_program \$(INSTALL_DATA) $ac_dir/$ac_program.fake \$(DESTDIR)\$(fakedlldir)/$ac_program
$ac_dir/uninstall:: $ac_dir/uninstall::
\$(RM) \$(DESTDIR)\$(dlldir)/$DLLPREFIX$ac_program$DLLEXT \$(DESTDIR)\$(fakedlldir)/$ac_program" \$(RM) \$(DESTDIR)\$(dlldir)/$ac_program$DLLEXT \$(DESTDIR)\$(fakedlldir)/$ac_program"
if test -z "$with_wine64" && wine_fn_has_flag installbin if test -z "$with_wine64" && wine_fn_has_flag installbin
then then
...@@ -8281,7 +8278,6 @@ $wine_binary $wine_binary-installed: wine_info.plist ...@@ -8281,7 +8278,6 @@ $wine_binary $wine_binary-installed: wine_info.plist
linux-android*) linux-android*)
DLLFLAGS="$DLLFLAGS -fPIC" DLLFLAGS="$DLLFLAGS -fPIC"
DLLPREFIX="lib"
LDEXECFLAGS="" LDEXECFLAGS=""
dlldir="\${libdir}" dlldir="\${libdir}"
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--export-dynamic" >&5 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--export-dynamic" >&5
......
...@@ -674,7 +674,6 @@ AC_CHECK_HEADERS([libprocstat.h],,, ...@@ -674,7 +674,6 @@ AC_CHECK_HEADERS([libprocstat.h],,,
dnl **** Check for working dll **** dnl **** Check for working dll ****
AC_SUBST(dlldir,"\${libdir}/wine") AC_SUBST(dlldir,"\${libdir}/wine")
AC_SUBST(DLLPREFIX,"")
AC_SUBST(DLLFLAGS,"-D_REENTRANT") AC_SUBST(DLLFLAGS,"-D_REENTRANT")
AC_SUBST(LDRPATH_INSTALL,"") AC_SUBST(LDRPATH_INSTALL,"")
AC_SUBST(LDRPATH_LOCAL,"") AC_SUBST(LDRPATH_LOCAL,"")
...@@ -894,7 +893,6 @@ $wine_binary $wine_binary-installed: wine_info.plist ...@@ -894,7 +893,6 @@ $wine_binary $wine_binary-installed: wine_info.plist
linux-android*) linux-android*)
DLLFLAGS="$DLLFLAGS -fPIC" DLLFLAGS="$DLLFLAGS -fPIC"
DLLPREFIX="lib"
LDEXECFLAGS="" LDEXECFLAGS=""
dlldir="\${libdir}" dlldir="\${libdir}"
WINE_TRY_CFLAGS([-fPIC -Wl,--export-dynamic], WINE_TRY_CFLAGS([-fPIC -Wl,--export-dynamic],
......
MODULE = dbghelp.dll MODULE = dbghelp.dll
IMPORTLIB = dbghelp IMPORTLIB = dbghelp
EXTRADEFS = -D_IMAGEHLP_SOURCE_ -DDLLPREFIX='"$(DLLPREFIX)"' EXTRADEFS = -D_IMAGEHLP_SOURCE_
IMPORTS = psapi IMPORTS = psapi
DELAYIMPORTS = version DELAYIMPORTS = version
EXTRALIBS = $(Z_LIBS) $(CORESERVICES_LIBS) $(COREFOUNDATION_LIBS) EXTRALIBS = $(Z_LIBS) $(CORESERVICES_LIBS) $(COREFOUNDATION_LIBS)
......
...@@ -422,16 +422,6 @@ static BOOL module_is_container_loaded(const struct process* pcs, ...@@ -422,16 +422,6 @@ static BOOL module_is_container_loaded(const struct process* pcs,
size_t len; size_t len;
struct module* module; struct module* module;
PCWSTR filename, modname; PCWSTR filename, modname;
static WCHAR* dll_prefix;
static int dll_prefix_len;
if (!dll_prefix)
{
dll_prefix_len = MultiByteToWideChar( CP_UNIXCP, 0, DLLPREFIX, -1, NULL, 0 );
dll_prefix = HeapAlloc( GetProcessHeap(), 0, dll_prefix_len * sizeof(WCHAR) );
MultiByteToWideChar( CP_UNIXCP, 0, DLLPREFIX, -1, dll_prefix, dll_prefix_len );
dll_prefix_len--;
}
if (!base) return FALSE; if (!base) return FALSE;
filename = get_filename(ImageName, NULL); filename = get_filename(ImageName, NULL);
...@@ -444,7 +434,6 @@ static BOOL module_is_container_loaded(const struct process* pcs, ...@@ -444,7 +434,6 @@ static BOOL module_is_container_loaded(const struct process* pcs,
base < module->module.BaseOfImage + module->module.ImageSize) base < module->module.BaseOfImage + module->module.ImageSize)
{ {
modname = get_filename(module->module.LoadedImageName, NULL); modname = get_filename(module->module.LoadedImageName, NULL);
if (dll_prefix_len && !strncmpW( modname, dll_prefix, dll_prefix_len )) modname += dll_prefix_len;
if (!strncmpiW(modname, filename, len) && if (!strncmpiW(modname, filename, len) &&
!memcmp(modname + len, S_DotSoW, 3 * sizeof(WCHAR))) !memcmp(modname + len, S_DotSoW, 3 * sizeof(WCHAR)))
{ {
......
...@@ -98,7 +98,6 @@ EXTRA_OBJS = version.o ...@@ -98,7 +98,6 @@ EXTRA_OBJS = version.o
config_EXTRADEFS = \ config_EXTRADEFS = \
-DBINDIR='"${bindir}"' \ -DBINDIR='"${bindir}"' \
-DDLLDIR='"${dlldir}"' \ -DDLLDIR='"${dlldir}"' \
-DDLLPREFIX='"$(DLLPREFIX)"' \
-DLIB_TO_BINDIR=\"`$(MAKEDEP) -R ${libdir} ${bindir}`\" \ -DLIB_TO_BINDIR=\"`$(MAKEDEP) -R ${libdir} ${bindir}`\" \
-DLIB_TO_DLLDIR=\"`$(MAKEDEP) -R ${libdir} ${dlldir}`\" \ -DLIB_TO_DLLDIR=\"`$(MAKEDEP) -R ${libdir} ${dlldir}`\" \
-DBIN_TO_DLLDIR=\"`$(MAKEDEP) -R ${bindir} ${dlldir}`\" \ -DBIN_TO_DLLDIR=\"`$(MAKEDEP) -R ${bindir} ${dlldir}`\" \
......
...@@ -249,10 +249,9 @@ static void init_server_dir( dev_t dev, ino_t ino ) ...@@ -249,10 +249,9 @@ static void init_server_dir( dev_t dev, ino_t ino )
} }
/* retrieve the default dll dir */ /* retrieve the default dll dir */
const char *get_dlldir( const char **default_dlldir, const char **dll_prefix ) const char *get_dlldir( const char **default_dlldir )
{ {
*default_dlldir = DLLDIR; *default_dlldir = DLLDIR;
*dll_prefix = "/" DLLPREFIX;
return dlldir; return dlldir;
} }
......
...@@ -94,20 +94,19 @@ static load_dll_callback_t load_dll_callback; ...@@ -94,20 +94,19 @@ static load_dll_callback_t load_dll_callback;
static const char *build_dir; static const char *build_dir;
static const char *default_dlldir; static const char *default_dlldir;
static const char *dll_prefix;
static const char **dll_paths; static const char **dll_paths;
static unsigned int nb_dll_paths; static unsigned int nb_dll_paths;
static int dll_path_maxlen; static int dll_path_maxlen;
extern void mmap_init(void); extern void mmap_init(void);
extern const char *get_dlldir( const char **default_dlldir, const char **dll_prefix ); extern const char *get_dlldir( const char **default_dlldir );
/* build the dll load path from the WINEDLLPATH variable */ /* build the dll load path from the WINEDLLPATH variable */
static void build_dll_path(void) static void build_dll_path(void)
{ {
int len, count = 0; int len, count = 0;
char *p, *path = getenv( "WINEDLLPATH" ); char *p, *path = getenv( "WINEDLLPATH" );
const char *dlldir = get_dlldir( &default_dlldir, &dll_prefix ); const char *dlldir = get_dlldir( &default_dlldir );
if (path) if (path)
{ {
...@@ -157,7 +156,6 @@ static void build_dll_path(void) ...@@ -157,7 +156,6 @@ static void build_dll_path(void)
if (len > dll_path_maxlen) dll_path_maxlen = len; if (len > dll_path_maxlen) dll_path_maxlen = len;
dll_paths[nb_dll_paths++] = default_dlldir; dll_paths[nb_dll_paths++] = default_dlldir;
} }
dll_path_maxlen += strlen( dll_prefix ) - 1;
} }
/* check if the library is the correct architecture */ /* check if the library is the correct architecture */
...@@ -244,7 +242,6 @@ static char *next_dll_path( struct dll_path_context *context ) ...@@ -244,7 +242,6 @@ static char *next_dll_path( struct dll_path_context *context )
default: default:
index -= 2; index -= 2;
if (index >= nb_dll_paths) return NULL; if (index >= nb_dll_paths) return NULL;
path = prepend( path + 1, dll_prefix, strlen( dll_prefix ));
path = prepend( path, dll_paths[index], strlen( dll_paths[index] )); path = prepend( path, dll_paths[index], strlen( dll_paths[index] ));
return path; return path;
} }
......
...@@ -138,7 +138,6 @@ static const char *tools_ext; ...@@ -138,7 +138,6 @@ static const char *tools_ext;
static const char *exe_ext; static const char *exe_ext;
static const char *dll_ext; static const char *dll_ext;
static const char *man_ext; static const char *man_ext;
static const char *dll_prefix;
static const char *crosstarget; static const char *crosstarget;
static const char *fontforge; static const char *fontforge;
static const char *convert; static const char *convert;
...@@ -3131,7 +3130,6 @@ int main( int argc, char *argv[] ) ...@@ -3131,7 +3130,6 @@ int main( int argc, char *argv[] )
exe_ext = get_expanded_make_variable( top_makefile, "EXEEXT" ); exe_ext = get_expanded_make_variable( top_makefile, "EXEEXT" );
man_ext = get_expanded_make_variable( top_makefile, "api_manext" ); man_ext = get_expanded_make_variable( top_makefile, "api_manext" );
dll_ext = (exe_ext && !strcmp( exe_ext, ".exe" )) ? "" : ".so"; dll_ext = (exe_ext && !strcmp( exe_ext, ".exe" )) ? "" : ".so";
dll_prefix = get_expanded_make_variable( top_makefile, "DLLPREFIX" );
crosstarget = get_expanded_make_variable( top_makefile, "CROSSTARGET" ); crosstarget = get_expanded_make_variable( top_makefile, "CROSSTARGET" );
fontforge = get_expanded_make_variable( top_makefile, "FONTFORGE" ); fontforge = get_expanded_make_variable( top_makefile, "FONTFORGE" );
convert = get_expanded_make_variable( top_makefile, "CONVERT" ); convert = get_expanded_make_variable( top_makefile, "CONVERT" );
...@@ -3142,7 +3140,6 @@ int main( int argc, char *argv[] ) ...@@ -3142,7 +3140,6 @@ int main( int argc, char *argv[] )
if (tools_dir && !strcmp( tools_dir, "." )) tools_dir = NULL; if (tools_dir && !strcmp( tools_dir, "." )) tools_dir = NULL;
if (!exe_ext) exe_ext = ""; if (!exe_ext) exe_ext = "";
if (!tools_ext) tools_ext = ""; if (!tools_ext) tools_ext = "";
if (!dll_prefix) dll_prefix = "";
if (!man_ext) man_ext = "3w"; if (!man_ext) man_ext = "3w";
for (i = 1; i < argc; i++) update_makefile( argv[i] ); for (i = 1; i < argc; i++) update_makefile( argv[i] );
......
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