Skip to content
Snippets Groups Projects
Commit 2ba9dc40 authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

Use /bin/pwd instead of pwd to get the PWD.

Some shell pwd implementations default to the "Logical" PWD, which
can contain symlinks.  The POSIX standard for /bin/pwd is to return
the "Physical" PWD with all symlinks resolved.  Some shells don't
support the -P option the the built-in pwd, so we don't want to
reply on that.

For some reason, we're redefining the PWD env variable which should
by the phyical path, but I'm not really interested in tracking down
all the windy history for this.

Basically, this bit me once, and now it's fixed.
parent f7dc0cc6
No related branches found
No related tags found
No related merge requests found
...@@ -56,7 +56,7 @@ SBBSUSER ?= $(USER) ...@@ -56,7 +56,7 @@ SBBSUSER ?= $(USER)
SBBSGROUP ?= $(GROUP) SBBSGROUP ?= $(GROUP)
SBBSCHOWN := $(SBBSUSER):$(SBBSGROUP) SBBSCHOWN := $(SBBSUSER):$(SBBSGROUP)
SBBSDIR ?= $(shell pwd) SBBSDIR ?= $(shell /bin/pwd)
export SBBSDIR export SBBSDIR
REPODIR = $(SBBSDIR)/repo REPODIR = $(SBBSDIR)/repo
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
all: output-dirs all: output-dirs
PWD := $(shell pwd) PWD := $(shell /bin/pwd)
SRC_ROOT ?= ${PWD}/.. SRC_ROOT ?= ${PWD}/..
include $(SRC_ROOT)/build/Common.gmake include $(SRC_ROOT)/build/Common.gmake
......
...@@ -10,7 +10,7 @@ ifdef STATIC ...@@ -10,7 +10,7 @@ ifdef STATIC
endif endif
# Set up LD_RUN_PATH for run-time locating of the .so files # Set up LD_RUN_PATH for run-time locating of the .so files
PWD := $(shell pwd) PWD := $(shell /bin/pwd)
LD_RUN_PATH := . LD_RUN_PATH := .
export LD_RUN_PATH export LD_RUN_PATH
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
# Optional build targets: dlls, utils, mono, all (default) # # Optional build targets: dlls, utils, mono, all (default) #
######################################################################### #########################################################################
PWD := $(shell pwd) PWD := $(shell /bin/pwd)
SRC_ROOT ?= ${PWD}/.. SRC_ROOT ?= ${PWD}/..
include $(SRC_ROOT)/build/Common.gmake include $(SRC_ROOT)/build/Common.gmake
include extdeps.mk include extdeps.mk
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment