summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorseawood%netscape.com <devnull@localhost>2003-02-23 15:54:17 +0000
committerseawood%netscape.com <devnull@localhost>2003-02-23 15:54:17 +0000
commit3335531160d6a9bb536b7997606ccf09be63f88b (patch)
tree1028a7019d3d7e58a6849057f088ba19ca70c630
parent9cfbfeb1b3b397fcc22e9d8cd8bcdbe3869d2df4 (diff)
downloadnspr-hg-3335531160d6a9bb536b7997606ccf09be63f88b.tar.gz
Default to using absolute symlinks when building on Darwin.
Bug #193164 r=ccarlen
-rw-r--r--config/config.mk11
1 files changed, 11 insertions, 0 deletions
diff --git a/config/config.mk b/config/config.mk
index c57687c9..205a5395 100644
--- a/config/config.mk
+++ b/config/config.mk
@@ -76,6 +76,13 @@ endef
LINK_DLL = $(LD) $(OS_DLLFLAGS) $(DLLFLAGS)
+ifeq ($(OS_ARCH),Darwin)
+ifndef NSDISTMODE
+NSDISTMODE=absolute_symlink
+endif
+PWD := $(shell pwd)
+endif
+
ifneq (,$(filter WINNT OS2, $(OS_ARCH)))
INSTALL = $(NSINSTALL)
else
@@ -85,7 +92,11 @@ INSTALL = $(NSINSTALL) -t
else
ifeq ($(NSDISTMODE),absolute_symlink)
# install using absolute symbolic links
+ifeq ($(OS_ARCH),Darwin)
+INSTALL = $(NSINSTALL) -L $(PWD)
+else
INSTALL = $(NSINSTALL) -L `$(NFSPWD)`
+endif
else
# install using relative symbolic links
INSTALL = $(NSINSTALL) -R