fix opkg target arch detection problem on x86
[openwrt/svn-archive/archive.git] / package / opkg / patches / 004-host_cpu.patch
1 --- a/libbb/Makefile.am
2 +++ b/libbb/Makefile.am
3 @@ -1,6 +1,6 @@
4 HOST_CPU=@host_cpu@
5 BUILD_CPU=@build_cpu@
6 -ALL_CFLAGS=-g -O -Wall -DHOST_CPU_STR=\"@host_cpu@\" -DBUILD_CPU=@build_cpu@
7 +ALL_CFLAGS=-g -O -Wall -DHOST_CPU_STR=\"$(HOST_CPU)\" -DBUILD_CPU=@build_cpu@
8
9 noinst_LTLIBRARIES = libbb.la
10
11 --- a/libopkg/Makefile.am
12 +++ b/libopkg/Makefile.am
13 @@ -1,5 +1,6 @@
14
15 -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)
16 +HOST_CPU=@host_cpu@
17 +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)
18
19 libopkg_includedir=$(includedir)/libopkg
20 libopkg_include_HEADERS= opkg.h