aboutsummaryrefslogtreecommitdiffstats
path: root/package/opkg/patches
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2009-01-16 16:22:01 +0000
committerFelix Fietkau <nbd@openwrt.org>2009-01-16 16:22:01 +0000
commit1a6786c4ea06659fc5400f8e476cc1f3070e353c (patch)
tree35c5b7db469ea057d49e4f90c79005427780f1b5 /package/opkg/patches
parent543839307a1b71f0c73ae115d75284f3a62d21a2 (diff)
downloadupstream-1a6786c4ea06659fc5400f8e476cc1f3070e353c.tar.gz
upstream-1a6786c4ea06659fc5400f8e476cc1f3070e353c.tar.bz2
upstream-1a6786c4ea06659fc5400f8e476cc1f3070e353c.zip
fix opkg target arch detection problem on x86
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@14055 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/opkg/patches')
-rw-r--r--package/opkg/patches/004-host_cpu.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/package/opkg/patches/004-host_cpu.patch b/package/opkg/patches/004-host_cpu.patch
new file mode 100644
index 0000000000..f70d502343
--- /dev/null
+++ b/package/opkg/patches/004-host_cpu.patch
@@ -0,0 +1,20 @@
+--- a/libbb/Makefile.am
++++ b/libbb/Makefile.am
+@@ -1,6 +1,6 @@
+ HOST_CPU=@host_cpu@
+ BUILD_CPU=@build_cpu@
+-ALL_CFLAGS=-g -O -Wall -DHOST_CPU_STR=\"@host_cpu@\" -DBUILD_CPU=@build_cpu@
++ALL_CFLAGS=-g -O -Wall -DHOST_CPU_STR=\"$(HOST_CPU)\" -DBUILD_CPU=@build_cpu@
+
+ noinst_LTLIBRARIES = libbb.la
+
+--- a/libopkg/Makefile.am
++++ b/libopkg/Makefile.am
+@@ -1,5 +1,6 @@
+
+-AM_CFLAGS=-Wall -Werror -DHOST_CPU_STR=\"@host_cpu@\" -DBUILD_CPU=@build_cpu@ -DLIBDIR=\"@libdir@\" -DOPKGLIBDIR=\"@opkglibdir@\" -DDATADIR=\"@datadir@\" -I$(top_srcdir) $(BIGENDIAN_CFLAGS) $(CURL_CFLAGS) $(GPGME_CFLAGS)
++HOST_CPU=@host_cpu@
++AM_CFLAGS=-Wall -Werror -DHOST_CPU_STR=\"$(HOST_CPU)\" -DBUILD_CPU=@build_cpu@ -DLIBDIR=\"@libdir@\" -DOPKGLIBDIR=\"@opkglibdir@\" -DDATADIR=\"@datadir@\" -I$(top_srcdir) $(BIGENDIAN_CFLAGS) $(CURL_CFLAGS) $(GPGME_CFLAGS)
+
+ libopkg_includedir=$(includedir)/libopkg
+ libopkg_include_HEADERS= opkg.h