summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBradley Sepos <[email protected]>2018-06-18 12:03:21 -0400
committerBradley Sepos <[email protected]>2018-06-18 12:03:21 -0400
commita589396d51a11a8697e2909e75e097db5bed22a1 (patch)
treea9eb63c956e721986b1c43df43d6d07946c1414b
parent53e89a2007b35bc0637b398fce63e1e775bef453 (diff)
contrib: Enable PIC when building x264 Flatpak on Linux.
-rw-r--r--contrib/x264/module.defs6
1 files changed, 6 insertions, 0 deletions
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