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 --- codecs/gsm/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'codecs') diff --git a/codecs/gsm/Makefile b/codecs/gsm/Makefile index a072e6d2d..06f082983 100644 --- a/codecs/gsm/Makefile +++ b/codecs/gsm/Makefile @@ -315,7 +315,7 @@ install: toastinstall gsminstall # The basic API: libgsm $(LIBGSMSO): $(LIB) $(GSM_OBJECTS) - $(LD) -o $@.1.0.10 -shared -Xlinker -soname -Xlinker libgsm.so.1 $(GSM_OBJECTS) -lc + $(LD) -o $@.1.0.10 -shared -Wl,-soname,libgsm.so.1 $(GSM_OBJECTS) -lc ln -fs libgsm.so.1.0.10 lib/libgsm.so.1 ln -fs libgsm.so.1.0.10 lib/libgsm.so -- cgit v1.2.3