summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Mack <zonque@gmail.com>2011-03-17 12:40:26 +0100
committerDaniel Mack <zonque@gmail.com>2011-03-21 00:32:29 +0100
commit00d96c04dcf73fd1c79b2ac6956592e9ba17aebf (patch)
treebb0bb259c1ddfe94002a81bbb5e3e37a695b0c78
parent249384c7a2bf0f17f8869998ea019c9d3d22b0da (diff)
osx: add -headerpad_max_install_names to LDFLAGS
This is needed for sufficient padding of library names in linked binaries.
-rw-r--r--src/Makefile.am4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index ff98ddb1..dc49bc19 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -78,6 +78,10 @@ AM_LDFLAGS+=-Wl,--export-all-symbols,--enable-auto-import -no-undefined
WINSOCK_LIBS=-lwsock32 -lws2_32 -lwininet
endif
+if OS_IS_DARWIN
+AM_LDFLAGS+=-headerpad_max_install_names
+endif
+
FOREIGN_CFLAGS = -w
MODULE_LDFLAGS = $(AM_LDFLAGS) -module -disable-static -avoid-version $(LDFLAGS_NOUNDEFINED)
MODULE_LIBADD = $(AM_LIBADD) libpulsecore-@PA_MAJORMINOR@.la libpulsecommon-@PA_MAJORMINOR@.la libpulse.la