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

contrib: build libgsm with -fPIC

Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <>
parent a070f1a1
......@@ -2511,6 +2511,7 @@ endif
(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 -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)
Supports Markdown
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