Commit d9d46900 authored by Felix Paul Kühne's avatar Felix Paul Kühne

contrib: fixed compilation of libgsm for iOS

parent fbfaa42a
...@@ -12,7 +12,7 @@ gsm: gsm-$(GSM_VERSION).tar.gz .sum-gsm ...@@ -12,7 +12,7 @@ gsm: gsm-$(GSM_VERSION).tar.gz .sum-gsm
mv gsm-1.0-* gsm-$(GSM_VERSION) mv gsm-1.0-* gsm-$(GSM_VERSION)
$(APPLY) $(SRC)/gsm/gsm-cross.patch $(APPLY) $(SRC)/gsm/gsm-cross.patch
$(MOVE) $(MOVE)
ifdef HAVE_MACOSX ifdef HAVE_DARWIN_OS
(cd $@; sed -e 's%-O2%-O2\ $(EXTRA_CFLAGS)\ $(EXTRA_LDFLAGS)%' -e 's%# LDFLAGS >=%LDFLAGS >-= $(EXTRA_LDFLAGS)%' -e 's%gcc%$(CC)%' -i.orig Makefile) (cd $@; sed -e 's%-O2%-O2\ $(EXTRA_CFLAGS)\ $(EXTRA_LDFLAGS)%' -e 's%# LDFLAGS >=%LDFLAGS >-= $(EXTRA_LDFLAGS)%' -e 's%gcc%$(CC)%' -i.orig Makefile)
endif endif
(cd $@; sed -i -e 's%-O2%-O2 -fPIC%' Makefile) (cd $@; sed -i -e 's%-O2%-O2 -fPIC%' Makefile)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment