From 61fe5f70701b4cab06c9763cc133b111788f8d02 Mon Sep 17 00:00:00 2001 From: Simon Warta Date: Mon, 22 Jun 2015 13:12:59 +0200 Subject: Use install_name_tool to change location of botan lib on OSX --- src/build-data/makefile/gmake.in | 2 ++ src/build-data/makefile/header.in | 3 +++ src/build-data/makefile/nmake.in | 2 ++ 3 files changed, 7 insertions(+) (limited to 'src/build-data') diff --git a/src/build-data/makefile/gmake.in b/src/build-data/makefile/gmake.in index af902c57b..6b22a26f3 100644 --- a/src/build-data/makefile/gmake.in +++ b/src/build-data/makefile/gmake.in @@ -35,9 +35,11 @@ all: $(APP) $(TEST) $(APP): $(LIBRARIES) $(APPOBJS) $(APP_LINK_CMD) $(LDFLAGS) $(APPOBJS) -L%{out_dir} -l%{libname} $(APP_LINKS_TO) -o $(APP) + $(APP_POST_LINK_CMD) $(TEST): $(LIBRARIES) $(TESTOBJS) $(TEST_LINK_CMD) $(LDFLAGS) $(TESTOBJS) -L%{out_dir} -l%{libname} $(TEST_LINKS_TO) -o $(TEST) + $(TEST_POST_LINK_CMD) $(STATIC_LIB): $(LIBOBJS) $(RM) $(STATIC_LIB) diff --git a/src/build-data/makefile/header.in b/src/build-data/makefile/header.in index dcc43592d..b0e248ebe 100644 --- a/src/build-data/makefile/header.in +++ b/src/build-data/makefile/header.in @@ -19,3 +19,6 @@ APP_FLAGS = $(LANG_FLAGS) $(APP_OPT) $(WARN_FLAGS) TEST_FLAGS = $(LANG_FLAGS) $(APP_OPT) $(WARN_FLAGS) SCRIPTS_DIR = %{scripts_dir} + +APP_POST_LINK_CMD = %{app_post_link_cmd} +TEST_POST_LINK_CMD = %{test_post_link_cmd} diff --git a/src/build-data/makefile/nmake.in b/src/build-data/makefile/nmake.in index c89eb7f44..9445063d9 100644 --- a/src/build-data/makefile/nmake.in +++ b/src/build-data/makefile/nmake.in @@ -43,9 +43,11 @@ all: $(APP) $(TEST) # Link Commands $(APP): $(LIBRARIES) $(APPOBJS) $(APP_LINK_CMD) /Fe$@ $(APPOBJS) $(LIB_FILENAME) $(APP_LINKS_TO) + $(APP_POST_LINK_CMD) $(TEST): $(LIBRARIES) $(TESTOBJS) $(TEST_LINK_CMD) /Fe$@ $(TESTOBJS) $(LIB_FILENAME) $(TEST_LINKS_TO) + $(TEST_POST_LINK_CMD) $(LIB_FILENAME): $(LIBOBJS) !If "$(SO_OBJ_FLAGS)" == "" -- cgit v1.2.3