mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-28 21:56:31 +00:00
libplayer: add patch to fix build issue
Fixes http://autobuild.buildroot.org/results/af5e72c2385896f2bdb5c1b98efd487afb46a502/build-end.log. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
This commit is contained in:
parent
efe0daab8c
commit
7f4f99ee78
18
package/libplayer/libplayer-add-fpic.patch
Normal file
18
package/libplayer/libplayer-add-fpic.patch
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
Add -fPIC to CFLAGS
|
||||||
|
|
||||||
|
-fPIC is needed to build shared library code.
|
||||||
|
|
||||||
|
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
||||||
|
|
||||||
|
Index: b/src/Makefile
|
||||||
|
===================================================================
|
||||||
|
--- a/src/Makefile
|
||||||
|
+++ b/src/Makefile
|
||||||
|
@@ -9,6 +9,7 @@
|
||||||
|
SHARED_LIBNAME_VERSION = $(SHARED_LIBNAME).$(VERSION)
|
||||||
|
SHARED_LIBNAME_MAJOR = $(SHARED_LIBNAME).$(shell echo $(VERSION) | cut -f1 -d.)
|
||||||
|
SHARED_LIBNAME_FLAGS = -shared -Wl,-soname,$(SHARED_LIBNAME_MAJOR)
|
||||||
|
+CFLAGS = -fPIC
|
||||||
|
|
||||||
|
ifeq ($(BUILD_STATIC),yes)
|
||||||
|
BUILD_RULES += lib_static
|
Loading…
x
Reference in New Issue
Block a user