aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2012-04-14 03:56:33 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2012-04-14 03:56:33 +0000
commitf81264ec2223e1a30e8f9f756411f965af662552 (patch)
tree937b577af3023b29e55dcfabb69efeecd27d7b8e
parent50ee50db1dba9106d4790c73f646af5f1cdbba68 (diff)
pad link fields with -headerpad_max_install_names so the Pd-extended packaging can rewrite the link paths
svn path=/trunk/externals/pdogg/; revision=16123
-rw-r--r--Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 1d2f1d4..3aa0f36 100644
--- a/Makefile
+++ b/Makefile
@@ -117,7 +117,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)