Alexandre Julliard : Makedll.rules: Add a generic EXTRADLLFLAGS variable instead of defining a specific variable for every possible parameter .

Alexandre Julliard julliard at winehq.org
Tue Dec 11 11:37:21 CST 2007


Module: wine
Branch: master
Commit: a5fb981acea5ce23d134ea5fbb5f79d274783a19
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=a5fb981acea5ce23d134ea5fbb5f79d274783a19

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Tue Dec 11 12:50:53 2007 +0100

Makedll.rules: Add a generic EXTRADLLFLAGS variable instead of defining a specific variable for every possible parameter.

---

 dlls/Makedll.rules.in     |    3 +--
 dlls/kernel32/Makefile.in |    3 +--
 dlls/ntdll/Makefile.in    |    2 +-
 3 files changed, 3 insertions(+), 5 deletions(-)

diff --git a/dlls/Makedll.rules.in b/dlls/Makedll.rules.in
index 3162175..45a8836 100644
--- a/dlls/Makedll.rules.in
+++ b/dlls/Makedll.rules.in
@@ -4,7 +4,6 @@
 # MODULE       : name of the main module being built
 # EXTRALIBS    : extra libraries to link in (optional)
 # SPEC_SRCS16  : interface definition files for 16-bit dlls (optional)
-# SUBSYSTEM    : (optional) subsystem (for native dlls)
 #
 # plus all variables required by the global Make.rules.in
 #
@@ -32,7 +31,7 @@ all: $(MODULE)$(DLLEXT) $(SUBDIRS)
 # Rules for .so files
 
 $(MODULE).so: $(MAINSPEC) $(ALL_OBJS) Makefile.in
-	$(WINEGCC) -B$(TOOLSDIR)/tools/winebuild -shared $(SRCDIR)/$(MAINSPEC) $(ALL_OBJS) $(SUBSYSTEM:%=-Wb,--subsystem,%) $(DLLFILENAME:%=-Wb,-F,%) $(BASEADDRESS:%=-Wl,--image-base,%) -o $@ $(DELAYIMPORTS:%=-l%) $(IMPORTS:%=-l%) $(DELAYIMPORTS:%=-Wb,-d%) $(ALL_LIBS)
+	$(WINEGCC) -B$(TOOLSDIR)/tools/winebuild -shared $(SRCDIR)/$(MAINSPEC) $(ALL_OBJS) $(EXTRADLLFLAGS) -o $@ $(DELAYIMPORTS:%=-l%) $(IMPORTS:%=-l%) $(DELAYIMPORTS:%=-Wb,-d%) $(ALL_LIBS)
 
 # Rules for .dll files
 
diff --git a/dlls/kernel32/Makefile.in b/dlls/kernel32/Makefile.in
index 7b0b4cc..aab68e6 100644
--- a/dlls/kernel32/Makefile.in
+++ b/dlls/kernel32/Makefile.in
@@ -7,8 +7,7 @@ MODULE    = kernel32.dll
 IMPORTLIB = libkernel32.$(IMPLIBEXT)
 IMPORTS   = ntdll
 EXTRALIBS = @COREFOUNDATIONLIB@ @LIBPOLL@
-DLLFILENAME = KERNEL32.dll
-BASEADDRESS = 0x7b800000
+EXTRADLLFLAGS = -Wb,-F,KERNEL32.dll -Wl,--image-base,0x7b800000
 
 SPEC_SRCS16 = \
 	comm.drv.spec \
diff --git a/dlls/ntdll/Makefile.in b/dlls/ntdll/Makefile.in
index 2156d4a..4ff9a91 100644
--- a/dlls/ntdll/Makefile.in
+++ b/dlls/ntdll/Makefile.in
@@ -6,7 +6,7 @@ VPATH     = @srcdir@
 MODULE    = ntdll.dll
 IMPORTLIB = libntdll.$(IMPLIBEXT)
 EXTRALIBS = @IOKITLIB@
-BASEADDRESS = 0x7bc00000
+EXTRADLLFLAGS = -Wl,--image-base,0x7bc00000
 
 C_SRCS = \
 	actctx.c \




More information about the wine-cvs mailing list