From f246f89c65438646d25517773ac7defc60dae6e4 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Wed, 22 Jan 2014 19:47:30 +0100 Subject: fix compile for arm --- package/libx264/Makefile | 5 +++-- package/libx264/patches/patch-configure | 11 ++++++++++- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/package/libx264/Makefile b/package/libx264/Makefile index de7c6a56f..55bd18868 100644 --- a/package/libx264/Makefile +++ b/package/libx264/Makefile @@ -6,7 +6,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:= libx264 # actually is git checkout from 22.01.2014 PKG_VERSION:= 1.0.1 -PKG_RELEASE:= 1 +PKG_RELEASE:= 2 PKG_MD5SUM:= 6be3e8adeaf6b007bbc04026b6ebd304 PKG_DESCR:= H264 encoding library PKG_SECTION:= libs @@ -23,7 +23,8 @@ $(eval $(call PKG_template,LIBX264,libx264,$(PKG_VERSION)-${PKG_RELEASE},${PKG_D ifeq ($(ADK_TARGET_SYSTEM_SHARP_ZAURUS),y) CONFIGURE_ARGS+= --disable-asm endif -CONFIGURE_ARGS+= --disable-cli +CONFIGURE_ARGS+= --disable-cli \ + --cross-prefix=$(TARGET_CROSS) libx264-install: $(INSTALL_DIR) $(IDIR_LIBX264)/usr/lib diff --git a/package/libx264/patches/patch-configure b/package/libx264/patches/patch-configure index 3fdcd36fd..ed9d2ed94 100644 --- a/package/libx264/patches/patch-configure +++ b/package/libx264/patches/patch-configure @@ -1,5 +1,14 @@ --- libx264-1.0.1.orig/configure 2014-01-22 11:20:21.000000000 +0100 -+++ libx264-1.0.1/configure 2014-01-22 11:29:13.000000000 +0100 ++++ libx264-1.0.1/configure 2014-01-22 19:42:21.000000000 +0100 +@@ -662,7 +662,7 @@ case $host_cpu in + LDFLAGS="$LDFLAGS -arch armv7" + fi + else +- AS="${AS-${cross_prefix}gcc}" ++ AS="${cross_prefix}gcc" + fi + ;; + s390|s390x) @@ -1007,9 +1007,9 @@ if [ "$debug" = "yes" ]; then elif [ $ARCH = ARM ]; then # arm-gcc-4.2 produces incorrect output with -ffast-math -- cgit v1.2.3