diff options
author | Bjoern Michaelsen <b_michaelsen@openoffice.org> | 2011-01-24 19:24:43 +0100 |
---|---|---|
committer | Bjoern Michaelsen <b_michaelsen@openoffice.org> | 2011-01-24 19:24:43 +0100 |
commit | a937dc7425b7496a6b370bb0891459288edb6204 (patch) | |
tree | 1a6add1bed78d9e798f3c8d8ec9890ccb345198c | |
parent | 7f21ffdaf0e96119156e6e508feb4c295aecc199 (diff) | |
parent | 67a6ec7207d237a157037c06febb49ca110d6560 (diff) |
gnumake3: merging minibranches
-rwxr-xr-x | solenv/gbuild/platform/windows.mk | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/solenv/gbuild/platform/windows.mk b/solenv/gbuild/platform/windows.mk index 62d756104b25..5fb70449cda7 100755 --- a/solenv/gbuild/platform/windows.mk +++ b/solenv/gbuild/platform/windows.mk @@ -382,11 +382,13 @@ gb_LinkTarget_INCLUDE :=\ gb_LinkTarget_INCLUDE_STL := $(filter %/stl, $(subst -I. , ,$(SOLARINC))) +gb_LinkTarget_get_pdbfile = $(call gb_LinkTarget_get_target,)pdb/$(1).pdb define gb_LinkTarget__command $(call gb_Output_announce,$(2),$(true),LNK,4) $(call gb_Helper_abbreviate_dirs_native,\ mkdir -p $(dir $(1)) && \ + rm -f $(1) && \ RESPONSEFILE=$$(mktemp --tmpdir=$(gb_Helper_MISC)) && \ echo "$(foreach object,$(CXXOBJECTS),$(call gb_CxxObject_get_target,$(object))) \ $(foreach object,$(COBJECTS),$(call gb_CObject_get_target,$(object))) $(PCHOBJS)" > $${RESPONSEFILE} && \ @@ -398,7 +400,8 @@ $(call gb_Helper_abbreviate_dirs_native,\ @$${RESPONSEFILE} \ $(foreach lib,$(LINKED_LIBS),$(call gb_Library_get_filename,$(lib))) \ $(foreach lib,$(LINKED_STATIC_LIBS),$(call gb_StaticLibrary_get_filename,$(lib))) \ - $(if $(DLLTARGET),-out:$(DLLTARGET) -implib:$(1),-out:$(1)) && rm $${RESPONSEFILE}) + $(if $(DLLTARGET),-out:$(DLLTARGET) -implib:$(1),-out:$(1)); RC=$$?; rm $${RESPONSEFILE} \ + $(if $(DLLTARGET),; if [ ! -f $(DLLTARGET) ]; then rm -f $(1) && false; fi) ; exit $$RC) endef @@ -475,12 +478,12 @@ $(call gb_LinkTarget_set_auxtargets,$(2),\ $(patsubst %.lib,%.exp,$(call gb_LinkTarget_get_target,$(2))) \ $(3).manifest \ $(patsubst %.dll,%.pdb,$(3)) \ - $(call gb_LinkTarget_get_target,)pdb/$(2).pdb \ + $(call gb_LinkTarget_get_pdbfile,$(2)) \ $(patsubst %.dll,%.ilk,$(3)) \ ) $(call gb_LinkTarget_get_target,$(2)) \ -$(call gb_LinkTarget_get_headers_target,$(2)) : PDBFILE = $(call gb_LinkTarget_get_target,)/pdb/$(2).pdb +$(call gb_LinkTarget_get_headers_target,$(2)) : PDBFILE = $(call gb_LinkTarget_get_pdbfile,$(2)) endef @@ -490,7 +493,7 @@ $(call gb_LinkTarget_set_dlltarget,$(2),$(3)) $(call gb_LinkTarget_set_auxtargets,$(2),\ $(patsubst %.lib,%.exp,$(call gb_LinkTarget_get_target,$(2))) \ $(3).manifest \ - $(call gb_LinkTarget_get_target,)pdb/$(2).pdb \ + $(call gb_LinkTarget_get_pdbfile,$(2)) \ $(patsubst %.dll,%.pdb,$(3)) \ $(patsubst %.dll,%.ilk,$(3)) \ ) @@ -509,7 +512,7 @@ endif $(call gb_Deliver_add_deliverable,$(OUTDIR)/bin/$(notdir $(3)),$(3)) $(call gb_LinkTarget_get_target,$(2)) \ -$(call gb_LinkTarget_get_headers_target,$(2)) : PDBFILE = $(call gb_LinkTarget_get_target,)/pdb/$(2).pdb +$(call gb_LinkTarget_get_headers_target,$(2)) : PDBFILE = $(call gb_LinkTarget_get_pdbfile,$(2)) endef @@ -534,10 +537,10 @@ gb_StaticLibrary_FILENAMES := $(patsubst salcpprt:salcpprt%,salcpprt:cpprtl%,$(g define gb_StaticLibrary_StaticLibrary_platform $(call gb_LinkTarget_get_target,$(2)) \ -$(call gb_LinkTarget_get_headers_target,$(2)) : PDBFILE = $(call gb_LinkTarget_get_target,)/pdb/$(2).pdb +$(call gb_LinkTarget_get_headers_target,$(2)) : PDBFILE = $(call gb_LinkTarget_get_pdbfile,$(2)) $(call gb_LinkTarget_set_auxtargets,$(2),\ - $(call gb_LinkTarget_get_target,)pdb/$(2).pdb \ + $(call gb_LinkTarget_get_pdbfile,$(2)) \ ) endef @@ -551,7 +554,7 @@ gb_Executable_get_rpath := define gb_Executable_Executable_platform $(call gb_LinkTarget_set_auxtargets,$(2),\ $(patsubst %.exe,%.pdb,$(call gb_LinkTarget_get_target,$(2))) \ - $(call gb_LinkTarget_get_target,)pdb/$(2).pdb \ + $(call gb_LinkTarget_get_pdbfile,$(2)) \ $(call gb_LinkTarget_get_target,$(2)).manifest \ ) @@ -560,7 +563,7 @@ $(call gb_Executable_get_clean_target,$(1)) : AUXTARGETS := $(call gb_Executable $(call gb_Deliver_add_deliverable,$(call gb_Executable_get_target,$(1)).manifest,$(call gb_LinkTarget_get_target,$(2)).manifest) $(call gb_LinkTarget_get_target,$(2)) \ -$(call gb_LinkTarget_get_headers_target,$(2)) : PDBFILE = $(call gb_LinkTarget_get_target,)/pdb/$(2).pdb +$(call gb_LinkTarget_get_headers_target,$(2)) : PDBFILE = $(call gb_LinkTarget_get_pdbfile,$(2)) endef |