Commit 2e4f1776 authored by Dominique Martinet's avatar Dominique Martinet Committed by Jean-Baptiste Kempf

contrib: build libgsm with -fPIC

Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent a070f1a1
......@@ -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)
......
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