build: allow overriding host cpu with make variable
authorJo-Philipp Wich <jo@mein.io>
Fri, 10 Feb 2017 08:53:40 +0000 (09:53 +0100)
committerJo-Philipp Wich <jo@mein.io>
Fri, 10 Feb 2017 08:53:40 +0000 (09:53 +0100)
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
libbb/Makefile.am
libopkg/Makefile.am

index 1cc82df2d90bb5a38266f005c389a829e56eb941..19015770282ab7c249163c6d0be93bc0847639d9 100644 (file)
@@ -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
 
index 373d09cafc3a36ad7456510afb7a1a4b1fa1007f..f6e374d60e0c15a7ab9050043d2fc9930c2b8c40 100644 (file)
@@ -1,5 +1,5 @@
-
-AM_CFLAGS=-Wall -DHOST_CPU_STR=\"@host_cpu@\" -DBUILD_CPU=@build_cpu@ -DLIBDIR=\"@libdir@\" -DOPKGLIBDIR=\"@opkglibdir@\" -DOPKGETCDIR=\"@opkgetcdir@\" -DOPKGLOCKFILE=\"@opkglockfile@\" -DDATADIR=\"@datadir@\" -I$(top_srcdir) $(BIGENDIAN_CFLAGS) $(CURL_CFLAGS) $(GPGME_CFLAGS) $(PATHFINDER_CFLAGS)
+HOST_CPU=@host_cpu@
+AM_CFLAGS=-Wall -DHOST_CPU_STR=\"$(HOST_CPU)\" -DBUILD_CPU=@build_cpu@ -DLIBDIR=\"@libdir@\" -DOPKGLIBDIR=\"@opkglibdir@\" -DOPKGETCDIR=\"@opkgetcdir@\" -DOPKGLOCKFILE=\"@opkglockfile@\" -DDATADIR=\"@datadir@\" -I$(top_srcdir) $(BIGENDIAN_CFLAGS) $(CURL_CFLAGS) $(GPGME_CFLAGS) $(PATHFINDER_CFLAGS)
 
 libopkg_includedir=$(includedir)/libopkg
 libopkg_include_HEADERS= *.h