aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2012-04-14 03:58:24 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2012-04-14 03:58:24 +0000
commitadbf59e3faf17c5ae4187a41dc7553301aba661d (patch)
tree1e8d860900c5ba3866d56743f926dea28383362e /Makefile
parent1a20a3d4fd811b7ae1012f18571fc39cb6f78369 (diff)
pad link fields with -headerpad_max_install_names so the Pd-extended packaging can rewrite the link paths
svn path=/trunk/externals/template/; revision=16124
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 50aaa30..84f5614 100644
--- a/Makefile
+++ b/Makefile
@@ -114,7 +114,8 @@ ifeq ($(UNAME),Darwin)
ALL_CFLAGS += $(FAT_FLAGS) -fPIC -I/sw/include
# if the 'pd' binary exists, check the linking against it to aid with stripping
BUNDLE_LOADER = $(shell test ! -e $(PD_PATH)/bin/pd || echo -bundle_loader $(PD_PATH)/bin/pd)
- ALL_LDFLAGS += $(FAT_FLAGS) -bundle $(BUNDLE_LOADER) -undefined dynamic_lookup -L/sw/lib
+ ALL_LDFLAGS += $(FAT_FLAGS) -headerpad_max_install_names -bundle $(BUNDLE_LOADER) \
+ -undefined dynamic_lookup -L/sw/lib
SHARED_LDFLAGS += $(FAT_FLAGS) -dynamiclib -undefined dynamic_lookup \
-install_name @loader_path/$(SHARED_LIB) -compatibility_version 1 -current_version 1.0
ALL_LIBS += -lc $(LIBS_macosx)