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
commit5ebc074df40fcfceb444bb4406d2f935d4476ebe (patch)
treef198a4c60bbe17b75dffc073548bd34e5c17e02b /package/opkg/patches
parent995fab5d40d13a0a079121505e0b9412b24bfeea (diff)
downloadupstream-5ebc074df40fcfceb444bb4406d2f935d4476ebe.tar.gz
upstream-5ebc074df40fcfceb444bb4406d2f935d4476ebe.tar.bz2
upstream-5ebc074df40fcfceb444bb4406d2f935d4476ebe.zip
fix opkg target arch detection problem on x86
SVN-Revision: 14055
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