From d908272b7e03d8b5002e4d3d83bcf8725c57afdd Mon Sep 17 00:00:00 2001 From: "David M. Lee" Date: Tue, 2 Jun 2015 15:07:08 -0500 Subject: Fixes for OS X * Add some type casting so tv_usec can really be a long, instead of some strange platform specific type. * Add some .dylib style files to .gitignore. * Switch from using -Xlinker to -Wl,. For [reasons unknown][], newer versions of GCC, when compiling the Homebrew formula for Asterisk, are not properly passing the -Xlinker options to the linker. Given that -Wl, does exactly the [same thing][], and does it properly, this patch changes the -Xlinker options to use -Wl, instead. [reasons unknown]: http://bit.ly/1SUbEYx [same thing]: https://gcc.gnu.org/onlinedocs/gcc/Link-Options.html Change-Id: Id5e6b3c6cc86282ea5fca630dc3991137c5bf4dd --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 24347e4e2..8180a4f89 100644 --- a/Makefile +++ b/Makefile @@ -261,10 +261,10 @@ MOD_SUBDIRS_MENUSELECT_TREE:=$(MOD_SUBDIRS:%=%-menuselect-tree) ifneq ($(findstring darwin,$(OSARCH)),) _ASTCFLAGS+=-D__Darwin__ -mmacosx-version-min=10.6 - _SOLINK=-mmacosx-version-min=10.6 -Xlinker -undefined -Xlinker dynamic_lookup + _SOLINK=-mmacosx-version-min=10.6 -Wl,-undefined,dynamic_lookup _SOLINK+=/usr/lib/bundle1.o SOLINK=-bundle $(_SOLINK) - DYLINK=-Xlinker -dylib $(_SOLINK) + DYLINK=-Wl,-dylib $(_SOLINK) _ASTLDFLAGS+=-L/usr/local/lib else # These are used for all but Darwin -- cgit v1.2.3