diff --git a/extras/contrib/src/contrib-src.mak b/extras/contrib/src/contrib-src.mak index 222ccf5f1471d491691ebea2880ce99ccb94c71b..8910b3f1f52a86f175b680100e90c47ce74cf6f9 100644 --- a/extras/contrib/src/contrib-src.mak +++ b/extras/contrib/src/contrib-src.mak @@ -2511,6 +2511,7 @@ endif ifdef HAVE_MACOSX (cd $@; sed -e 's%-O2%-O2\ $(EXTRA_CFLAGS)\ $(EXTRA_LDFLAGS)%' -e 's%# LDFLAGS =%LDFLAGS = $(EXTRA_LDFLAGS)%' -e 's%gcc%$(CC)%' -i.orig Makefile) endif + (cd $@; sed -i -e 's%-O2%-O2 -fPIC%' Makefile) .gsm: gsm (cd $<; $(HOSTCC) make && mkdir -p $(PREFIX)/include/gsm && cp inc/gsm.h $(PREFIX)/include/gsm && cp lib/libgsm.a $(PREFIX)/lib)