commit a9c538103e75c7c6bde1d72edb1215036766413b parent 46618cf6c3b7d21b4115e1f59c0856cfd0098e96 Author: Kyle Milz <kyle@0x30.net> Date: Tue, 19 Jul 2016 21:30:02 -0600 Jamrules: use readlink and $(TOP) to find source root Diffstat:
M | Jamrules | | | 8 | ++++---- |
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/Jamrules b/Jamrules @@ -5,12 +5,12 @@ if $(PREFIX) { } else { # No PREFIX means an in tree build. Use absolute paths to local copies. - PWD = `pwd` ; - CITRUN_LIB = $(PWD)/lib/libcitrun.a ; - CITRUN_PATH = $(PWD)/src ; + ROOT = "`readlink -f $(TOP)`" ; + CITRUN_LIB = $(ROOT)/lib/libcitrun.a ; + CITRUN_PATH = $(ROOT)/src ; } -# Packaging systems like for build systems to respect this. +# Try and respect this, {pkg,llvm}-config gives -O? too unfortunately OPTIM = $(CFLAGS) ; if $(OS) = OPENBSD {