From 4871392dc00a1a37c046339865995186dbffd8c9 Mon Sep 17 00:00:00 2001 From: Bradley Sepos Date: Mon, 18 Jun 2018 12:03:21 -0400 Subject: [PATCH] contrib: Enable PIC when building x264 Flatpak on Linux. (cherry picked from commit a589396d51a11a8697e2909e75e097db5bed22a1) --- contrib/x264/module.defs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/contrib/x264/module.defs b/contrib/x264/module.defs index 57e65fde6..3b701d810 100644 --- a/contrib/x264/module.defs +++ b/contrib/x264/module.defs @@ -18,3 +18,9 @@ ifeq (1,$(BUILD.cross)) X264.CONFIGURE.env.CFLAGS = CFLAGS="-I$(call fn.ABSOLUTE,$(CONTRIB.build/)include) $(call fn.ARGS,X264.GCC,*archs *sysroot *minver ?extra)" X264.CONFIGURE.env.LDFLAGS = LDFLAGS="-L$(call fn.ABSOLUTE,$(CONTRIB.build/)lib) $(call fn.ARGS,X264.GCC,*archs *sysroot *minver)" endif + +ifeq (linux,$(BUILD.system)) + ifeq (x86_64,$(BUILD.machine)) + X264.CONFIGURE.extra += --enable-pic + endif +endif -- 2.40.0