From 00d96c04dcf73fd1c79b2ac6956592e9ba17aebf Mon Sep 17 00:00:00 2001 From: Daniel Mack Date: Thu, 17 Mar 2011 12:40:26 +0100 Subject: osx: add -headerpad_max_install_names to LDFLAGS This is needed for sufficient padding of library names in linked binaries. --- src/Makefile.am | 4 ++++ 1 file changed, 4 insertions(+) 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 -- cgit