diff --git a/reactos/tools/rbuild/backend/mingw/linkers/ld.mak b/reactos/tools/rbuild/backend/mingw/linkers/ld.mak index 88da818491e..d7fc3b78e40 100644 --- a/reactos/tools/rbuild/backend/mingw/linkers/ld.mak +++ b/reactos/tools/rbuild/backend/mingw/linkers/ld.mak @@ -1,12 +1,12 @@ # -exclude-all-symbols disables autoexporting all symbols *if none were found* (either in a DEF file or using __declspec(dllexport) -LDFLAG_DLL:=-shared -exclude-all-symbols -LDFLAG_DRIVER:=-shared --subsystem=native -exclude-all-symbols -LDFLAG_NOSTDLIB:=-nostartfiles -nostdlib +LDFLAG_DLL:=--shared --exclude-all-symbols +LDFLAG_DRIVER:=--shared --subsystem=native --exclude-all-symbols +LDFLAG_NOSTDLIB:=--nostartfiles --nostdlib LDFLAG_CONSOLE:=--subsystem=console LDFLAG_WINDOWS:=--subsystem=windows LDFLAG_NATIVE:=--subsystem=native -LDFLAG_EXCLUDE_ALL_SYMBOLS=-exclude-all-symbols +LDFLAG_EXCLUDE_ALL_SYMBOLS=--exclude-all-symbols DLLTOOL_FLAGS=--kill-at ifeq ($(ARCH),amd64) DLLTOOL_FLAGS= --no-leading-underscore @@ -87,4 +87,4 @@ endef #~ #(module, def, deps, ldflags, libs, entry, base) #~ RBUILD_LINK_RULE=${call RBUILD_LINK,$(1),$(value $(1)_OBJS),$(3),$(4),$(value $(1)_TARGET),$(2),$(5) $(value $(1)_LIBS) $(5),$(6),$(7)} #(module, def, deps, ldflags, libs, entry, base, extralibs) -RBUILD_LINK_RULE=${call RBUILD_LINK,$(1),$(value $(1)_OBJS),$(3),$(4),$(value $(1)_TARGET),$(2),$(value $(1)_LIBS),$(6),$(7),$(5)} \ No newline at end of file +RBUILD_LINK_RULE=${call RBUILD_LINK,$(1),$(value $(1)_OBJS),$(3),$(4),$(value $(1)_TARGET),$(2),$(value $(1)_LIBS),$(6),$(7),$(5)}