commit 81f85d1eac2efcf9ecb90aa58ee0f154813cc7b1
parent a457d89b3267ab3f8ce4db08839584c2ae9ccf98
Author: Ted Hess <thess@kitschensync.net>
Date: Sat, 1 Oct 2016 07:58:07 -0400
Merge pull request #3270 from dangowrt/libx264-more-fixes
libx264: more build fixes
Diffstat:
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/libs/libx264/Makefile b/libs/libx264/Makefile
@@ -27,6 +27,9 @@ include $(INCLUDE_DIR)/package.mk
TARGET_CFLAGS+=-std=gnu99 -fPIC -O3 -ffast-math -I.
MAKE_FLAGS+= LD="$(TARGET_CC) -o"
+# ARM ASM depends on ARM1156 or later, blacklist earlier or incompatible cores
+CPU_ASM_BLACKLIST:=arm920t arm926ej-s arm1136j-s arm1176jzf-s fa526 mpcore xscale
+
ifneq ($(CONFIG_TARGET_x86),)
ifeq ($(CONFIG_YASM),y)
CONFIGURE_VARS+= AS=yasm
@@ -38,7 +41,7 @@ else
endif
endif
-ifneq ($(CONFIG_SOFT_FLOAT),)
+ifneq ($(CONFIG_SOFT_FLOAT)$(findstring $(CONFIG_CPU_TYPE),$(CPU_ASM_BLACKLIST)),)
CONFIGURE_VARS+= AS=
MAKE_FLAGS+= AS=
CONFIGURE_ARGS += --disable-asm
@@ -53,7 +56,7 @@ define Package/libx264
SECTION:=libs
CATEGORY:=Libraries
TITLE:=H264/AVC free codec library.
- DEPENDS:=@BUILD_PATENTED
+ DEPENDS:=+libpthread @BUILD_PATENTED
URL:=http://www.videolan.org/developers/x264.html
endef