summaryrefslogtreecommitdiff
path: root/Makefile.in
diff options
context:
space:
mode:
authorSimon Horman <horms@verge.net.au>2012-12-23 13:45:29 +0900
committerSimon Horman <horms@verge.net.au>2012-12-23 16:10:00 +0900
commit3af8bee323bfb7894e760ac32f18e3ef082b2c5b (patch)
treee304b87f9abda10485695c7ef4e961f17163f394 /Makefile.in
parent9044ac63c0b5dc5be6b651727f44c87ceccc2d63 (diff)
downloadkexec-tools-3af8bee323bfb7894e760ac32f18e3ef082b2c5b.tar.gz
build: Restrict scope of per-arch compiler flags
Restrict the scope of compiler flags set in per-arch Makefiles to the architecture the Makefile belongs to. Signed-off-by: Simon Horman <horms@verge.net.au>
Diffstat (limited to 'Makefile.in')
-rw-r--r--Makefile.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile.in b/Makefile.in
index 384cf0b..c1859d1 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -45,10 +45,10 @@ TARGET_CFLAGS = @TARGET_CFLAGS@
# Base compiler flags. These are extended by the subcomponent-Makefiles
# where necessary.
CPPFLAGS = @CPPFLAGS@ -I$(srcdir)/include -I$(srcdir)/util_lib/include \
- -Iinclude/
+ -Iinclude/ $($(ARCH)_CPPFLAGS)
CFLAGS = @CFLAGS@ -fno-strict-aliasing -Wall -Wstrict-prototypes
PURGATORY_EXTRA_CFLAGS = @PURGATORY_EXTRA_CFLAGS@
-ASFLAGS = @ASFLAGS@
+ASFLAGS = @ASFLAGS@ $($(ARCH)_ASFLAGS)
LDFLAGS = @LDFLAGS@
LIBS = @LIBS@