From 62807be8c9a7620e7198b203f5d56046a87584ae Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Tue, 21 Apr 2020 12:00:08 +0200 Subject: [PATCH] makefiles: Explicitly import libwine where necessary. Signed-off-by: Alexandre Julliard --- dlls/ntdll/Makefile.in | 2 +- dlls/wineandroid.drv/Makefile.in | 1 + tools/winegcc/winegcc.c | 1 - 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/ntdll/Makefile.in b/dlls/ntdll/Makefile.in index 491cf5a707c..a67809a6c2b 100644 --- a/dlls/ntdll/Makefile.in +++ b/dlls/ntdll/Makefile.in @@ -3,7 +3,7 @@ MODULE = ntdll.dll IMPORTLIB = ntdll IMPORTS = winecrt0 EXTRAINCL = $(UNWIND_CFLAGS) -EXTRALIBS = $(IOKIT_LIBS) $(RT_LIBS) $(PTHREAD_LIBS) $(UNWIND_LIBS) +EXTRALIBS = -lwine $(IOKIT_LIBS) $(RT_LIBS) $(PTHREAD_LIBS) $(UNWIND_LIBS) EXTRADLLFLAGS = -nodefaultlibs -Wl,--image-base,0x7bc00000 C_SRCS = \ diff --git a/dlls/wineandroid.drv/Makefile.in b/dlls/wineandroid.drv/Makefile.in index 40ab495e352..e35f85ac895 100644 --- a/dlls/wineandroid.drv/Makefile.in +++ b/dlls/wineandroid.drv/Makefile.in @@ -1,5 +1,6 @@ MODULE = wineandroid.drv IMPORTS = uuid ole32 user32 gdi32 advapi32 ntoskrnl +EXTRALIBS = -lwine C_SRCS = \ device.c \ diff --git a/tools/winegcc/winegcc.c b/tools/winegcc/winegcc.c index 5ea99d3cf07..d38ca974883 100644 --- a/tools/winegcc/winegcc.c +++ b/tools/winegcc/winegcc.c @@ -1180,7 +1180,6 @@ static void build(struct options* opts) add_library(opts, lib_dirs, files, "kernel32"); add_library(opts, lib_dirs, files, "ntdll"); } - if (!opts->nostdlib && !is_pe) add_library(opts, lib_dirs, files, "wine"); /* set default entry point, if needed */ if (!opts->entry_point)