Commit a5fb981a authored by Alexandre Julliard's avatar Alexandre Julliard

Makedll.rules: Add a generic EXTRADLLFLAGS variable instead of defining a…

Makedll.rules: Add a generic EXTRADLLFLAGS variable instead of defining a specific variable for every possible parameter.
parent 7f10ee45
......@@ -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
......
......@@ -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 \
......
......@@ -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 \
......
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