e4b227f9114ae089628ab1b03aa160430569a021
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / libplayer / 0001-add-fpic.patch
1 Add -fPIC to CFLAGS
2
3 -fPIC is needed to build shared library code.
4
5 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
6
7 Index: b/src/Makefile
8 ===================================================================
9 --- a/src/Makefile
10 +++ b/src/Makefile
11 @@ -9,6 +9,7 @@
12  SHARED_LIBNAME_VERSION = $(SHARED_LIBNAME).$(VERSION)
13  SHARED_LIBNAME_MAJOR = $(SHARED_LIBNAME).$(shell echo $(VERSION) | cut -f1 -d.)
14  SHARED_LIBNAME_FLAGS = -shared -Wl,-soname,$(SHARED_LIBNAME_MAJOR)
15 +CFLAGS = -fPIC
16  
17  ifeq ($(BUILD_STATIC),yes)
18    BUILD_RULES += lib_static