summaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorJohn Stebbins <[email protected]>2019-01-04 14:58:11 -0700
committerJohn Stebbins <[email protected]>2019-01-05 10:07:22 -0700
commitd8068f9e6a8db7475cf361d19c7eb8a5e29716d9 (patch)
treecb35419e4a6041a6fdf7b725c837d35c33f91232 /contrib
parentd4761a9f2f07fe02935089356fd847530a8eec57 (diff)
flatpak: fix x264 link errors in latest flatpak Sdk
Latest flatpak freedesktop Sdk gcc uses PIE by default which requires that we build x264 with PIC
Diffstat (limited to 'contrib')
-rw-r--r--contrib/x264/module.defs4
1 files changed, 4 insertions, 0 deletions
diff --git a/contrib/x264/module.defs b/contrib/x264/module.defs
index 4d7dd1dc0..ea8899e01 100644
--- a/contrib/x264/module.defs
+++ b/contrib/x264/module.defs
@@ -18,3 +18,7 @@ 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 (1,$(FEATURE.flatpak))
+ X264.CONFIGURE.extra += --enable-pic
+endif