summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>2017-03-04 14:45:50 +0100
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2017-03-05 21:35:27 +0100
commita0121c7beb7bcdb001ddac61f8a06ed36792ef80 (patch)
treeb126c0a0959fcfcc658f8be8e309e65e79e5ccc4
parent894ad2b094331f7a43e3b352caa721e8909a334f (diff)
downloadbuildroot-a0121c7beb7bcdb001ddac61f8a06ed36792ef80.tar.gz
buildroot-a0121c7beb7bcdb001ddac61f8a06ed36792ef80.zip
x264: fix build on OpenRISC
Even though x264 doesn't use an autoconf generated configure script (and hence doesn't use the autotools-package infrastructure), it uses config.guess and config.sub. The ones bundled in x264 are too old to know about the OpenRISC architecture, so this commit leverages the UPDATE_CONFIG_HOOK from the autotools-package infrastructure to update config.sub and config.guess. Fixes: http://autobuild.buildroot.net/results/b458c2dff0ecde61248f058092c6eeaa75039cfb Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
-rw-r--r--package/x264/x264.mk5
1 files changed, 5 insertions, 0 deletions
diff --git a/package/x264/x264.mk b/package/x264/x264.mk
index 80437c408c..2c8040b85e 100644
--- a/package/x264/x264.mk
+++ b/package/x264/x264.mk
@@ -36,6 +36,11 @@ ifeq ($(BR2_TOOLCHAIN_HAS_THREADS),)
X264_CONF_OPTS += --disable-thread
endif
+# Even though the configure script is not generated by autoconf, x264
+# uses config.sub/config.guess, so we want up-to-date versions of
+# them.
+X264_POST_PATCH_HOOKS += UPDATE_CONFIG_HOOK
+
# the configure script is not generated by autoconf
define X264_CONFIGURE_CMDS
(cd $(@D); $(TARGET_CONFIGURE_OPTS) $(X264_CONF_ENV) ./configure \
OpenPOWER on IntegriCloud