From d8068f9e6a8db7475cf361d19c7eb8a5e29716d9 Mon Sep 17 00:00:00 2001 From: John Stebbins Date: Fri, 4 Jan 2019 14:58:11 -0700 Subject: 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 --- contrib/x264/module.defs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'contrib/x264') 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 -- cgit v1.2.3