зеркало из https://github.com/mozilla/pjs.git
Bugzilla Bug 345482: changed abspath to core_abspath to avoid conflict with
the built-in abspath function of GNU make 3.81. The patch is contributed by Benjamin Smedberg <benjamin@smedbergs.us>. r=wtc,christophe.ravel Modified Files: coreconf/rules.mk nss/cmd/shlibsign/Makefile nss/lib/freebl/Makefile nss/lib/pk11wrap/Makefile
This commit is contained in:
Родитель
66eac5226b
Коммит
b033b4ec3c
|
@ -419,15 +419,15 @@ PWD := $(shell pwd)
|
|||
endif
|
||||
endif
|
||||
|
||||
abspath = $(if $(findstring :,$(1)),$(1),$(if $(filter /%,$(1)),$(1),$(PWD)/$(1)))
|
||||
core_abspath = $(if $(findstring :,$(1)),$(1),$(if $(filter /%,$(1)),$(1),$(PWD)/$(1)))
|
||||
|
||||
$(OBJDIR)/$(PROG_PREFIX)%$(OBJ_SUFFIX): %.c
|
||||
@$(MAKE_OBJDIR)
|
||||
ifdef USE_NT_C_SYNTAX
|
||||
$(CC) -Fo$@ -c $(CFLAGS) $(call abspath,$<)
|
||||
$(CC) -Fo$@ -c $(CFLAGS) $(call core_abspath,$<)
|
||||
else
|
||||
ifdef NEED_ABSOLUTE_PATH
|
||||
$(CC) -o $@ -c $(CFLAGS) $(call abspath,$<)
|
||||
$(CC) -o $@ -c $(CFLAGS) $(call core_abspath,$<)
|
||||
else
|
||||
$(CC) -o $@ -c $(CFLAGS) $<
|
||||
endif
|
||||
|
@ -435,10 +435,10 @@ endif
|
|||
|
||||
$(PROG_PREFIX)%$(OBJ_SUFFIX): %.c
|
||||
ifdef USE_NT_C_SYNTAX
|
||||
$(CC) -Fo$@ -c $(CFLAGS) $(call abspath,$<)
|
||||
$(CC) -Fo$@ -c $(CFLAGS) $(call core_abspath,$<)
|
||||
else
|
||||
ifdef NEED_ABSOLUTE_PATH
|
||||
$(CC) -o $@ -c $(CFLAGS) $(call abspath,$<)
|
||||
$(CC) -o $@ -c $(CFLAGS) $(call core_abspath,$<)
|
||||
else
|
||||
$(CC) -o $@ -c $(CFLAGS) $<
|
||||
endif
|
||||
|
@ -467,10 +467,10 @@ $(OBJDIR)/$(PROG_PREFIX)%$(OBJ_SUFFIX): %.S
|
|||
$(OBJDIR)/$(PROG_PREFIX)%: %.cpp
|
||||
@$(MAKE_OBJDIR)
|
||||
ifdef USE_NT_C_SYNTAX
|
||||
$(CCC) -Fo$@ -c $(CFLAGS) $(call abspath,$<)
|
||||
$(CCC) -Fo$@ -c $(CFLAGS) $(call core_abspath,$<)
|
||||
else
|
||||
ifdef NEED_ABSOLUTE_PATH
|
||||
$(CCC) -o $@ -c $(CFLAGS) $(call abspath,$<)
|
||||
$(CCC) -o $@ -c $(CFLAGS) $(call core_abspath,$<)
|
||||
else
|
||||
$(CCC) -o $@ -c $(CFLAGS) $<
|
||||
endif
|
||||
|
@ -491,10 +491,10 @@ ifdef STRICT_CPLUSPLUS_SUFFIX
|
|||
rm -f $(OBJDIR)/t_$*.cc
|
||||
else
|
||||
ifdef USE_NT_C_SYNTAX
|
||||
$(CCC) -Fo$@ -c $(CFLAGS) $(call abspath,$<)
|
||||
$(CCC) -Fo$@ -c $(CFLAGS) $(call core_abspath,$<)
|
||||
else
|
||||
ifdef NEED_ABSOLUTE_PATH
|
||||
$(CCC) -o $@ -c $(CFLAGS) $(call abspath,$<)
|
||||
$(CCC) -o $@ -c $(CFLAGS) $(call core_abspath,$<)
|
||||
else
|
||||
$(CCC) -o $@ -c $(CFLAGS) $<
|
||||
endif
|
||||
|
|
|
@ -86,17 +86,17 @@ include $(CORE_DEPTH)/coreconf/rules.mk
|
|||
|
||||
include ../platrules.mk
|
||||
|
||||
SRCDIR = $(call abspath,.)
|
||||
SRCDIR = $(call core_abspath,.)
|
||||
|
||||
%.chk: %.$(DLL_SUFFIX)
|
||||
ifeq ($(OS_TARGET), OS2)
|
||||
cd $(OBJDIR) ; cmd.exe /c $(SRCDIR)/sign.cmd $(DIST) \
|
||||
$(call abspath,$(OBJDIR)) $(OS_TARGET) \
|
||||
$(call abspath,$(NSPR_LIB_DIR)) $(call abspath,$<)
|
||||
$(call core_abspath,$(OBJDIR)) $(OS_TARGET) \
|
||||
$(call core_abspath,$(NSPR_LIB_DIR)) $(call core_abspath,$<)
|
||||
else
|
||||
cd $(OBJDIR) ; sh $(SRCDIR)/sign.sh $(call abspath,$(DIST)) \
|
||||
$(call abspath,$(OBJDIR)) $(OS_TARGET) $(call abspath,$(NSPR_LIB_DIR)) \
|
||||
$(call abspath,$<)
|
||||
cd $(OBJDIR) ; sh $(SRCDIR)/sign.sh $(call core_abspath,$(DIST)) \
|
||||
$(call core_abspath,$(OBJDIR)) $(OS_TARGET) \
|
||||
$(call core_abspath,$(NSPR_LIB_DIR)) $(call core_abspath,$<)
|
||||
endif
|
||||
|
||||
libs install :: $(CHECKLOC)
|
||||
|
|
|
@ -571,7 +571,7 @@ endif # FREEBL_CHILD_BUILD
|
|||
ifdef XP_OS2_VACPP
|
||||
$(OBJDIR)/alg2268.obj: alg2268.c
|
||||
@$(MAKE_OBJDIR)
|
||||
$(CC) -Fo$@ -c $(filter-out /O+, $(CFLAGS)) $(call abspath,$<)
|
||||
$(CC) -Fo$@ -c $(filter-out /O+, $(CFLAGS)) $(call core_abspath,$<)
|
||||
endif
|
||||
|
||||
# Bugzilla Bug 333917: the non-x86 code in desblapi.c seems to violate
|
||||
|
@ -581,7 +581,7 @@ ifneq ($(CPU_ARCH),x86)
|
|||
$(OBJDIR)/$(PROG_PREFIX)desblapi$(OBJ_SUFFIX): desblapi.c
|
||||
@$(MAKE_OBJDIR)
|
||||
ifdef NEED_ABSOLUTE_PATH
|
||||
$(CC) -o $@ -c $(CFLAGS) -fno-strict-aliasing $(call abspath,$<)
|
||||
$(CC) -o $@ -c $(CFLAGS) -fno-strict-aliasing $(call core_abspath,$<)
|
||||
else
|
||||
$(CC) -o $@ -c $(CFLAGS) -fno-strict-aliasing $<
|
||||
endif
|
||||
|
|
|
@ -96,8 +96,8 @@ endif
|
|||
ifdef XP_OS2_VACPP
|
||||
$(OBJDIR)/pk11skey.obj: pk11skey.c
|
||||
@$(MAKE_OBJDIR)
|
||||
$(CC) -Fo$@ -c $(filter-out /O+, $(CFLAGS)) $(call abspath,$<)
|
||||
$(CC) -Fo$@ -c $(filter-out /O+, $(CFLAGS)) $(call core_abspath,$<)
|
||||
$(OBJDIR)/pk11slot.obj: pk11slot.c
|
||||
@$(MAKE_OBJDIR)
|
||||
$(CC) -Fo$@ -c $(filter-out /O+, $(CFLAGS)) $(call abspath,$<)
|
||||
$(CC) -Fo$@ -c $(filter-out /O+, $(CFLAGS)) $(call core_abspath,$<)
|
||||
endif
|
||||
|
|
Загрузка…
Ссылка в новой задаче