From febe9001619386e4a639270e5f267473cac31064 Mon Sep 17 00:00:00 2001 From: Mike Hamburg Date: Thu, 23 Apr 2015 14:41:41 -0700 Subject: [PATCH] makefile rpath settings --- Makefile | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Makefile b/Makefile index 3c31f2d..bd05beb 100644 --- a/Makefile +++ b/Makefile @@ -87,10 +87,18 @@ scan: clean make build/bench build/test all build/test: build/test_decaf.o lib +ifeq ($(UNAME),Darwin) $(LDXX) $(LDFLAGS) -o $@ $< -Lbuild -ldecaf +else + $(LDXX) $(LDFLAGS) -Wl,-rpath,`pwd`/build -o $@ $< -Lbuild -ldecaf +endif build/bench: build/bench_decaf.o lib +ifeq ($(UNAME),Darwin) $(LDXX) $(LDFLAGS) -o $@ $< -Lbuild -ldecaf +else + $(LDXX) $(LDFLAGS) -Wl,-rpath,`pwd`/build -o $@ $< -Lbuild -ldecaf +endif build/shakesum: build/shakesum.o build/shake.o $(LD) $(LDFLAGS) -o $@ $^