diff -ruN nss-3.12.6.orig/nss/coreconf/rules.mk nss-3.12.6/mozilla/security/coreconf/rules.mk --- nss-3.12.6.orig/nss/coreconf/rules.mk 2009-12-08 01:33:36.000000000 +0000 +++ nss-3.12.6/mozilla/nss/coreconf/rules.mk 2011-04-28 13:59:24.449070011 +0100 @@ -378,7 +378,7 @@ endif # The quotes allow absolute paths to contain spaces. -core_abspath = '$(if $(findstring :,$(1)),$(1),$(if $(filter /%,$(1)),$(1),$(PWD)/$(1)))' +core_abspath = "$(shell if [ -d $(1) ]; then cd $(1); pwd; else cd `dirname $(1)`; echo `pwd`/`basename $(1)`; fi )" $(OBJDIR)/$(PROG_PREFIX)%$(OBJ_SUFFIX): %.c @$(MAKE_OBJDIR)