2013-08-05 21:24:35 +02:00
|
|
|
$NetBSD: patch-Makefile.setting.in,v 1.2 2013/08/05 19:24:35 adam Exp $
|
2012-04-28 08:56:42 +02:00
|
|
|
|
2013-08-05 21:24:35 +02:00
|
|
|
--- Makefile.setting.in.orig 2013-07-27 15:09:40.000000000 +0000
|
2012-04-28 08:56:42 +02:00
|
|
|
+++ Makefile.setting.in
|
2013-08-05 21:24:35 +02:00
|
|
|
@@ -9,14 +9,17 @@ SETTINGSGEN = !!SETTINGSGEN!!
|
2012-04-28 08:56:42 +02:00
|
|
|
ENDIAN_CHECK = !!ENDIAN_CHECK!!
|
|
|
|
SRC_DIR = !!SRC_DIR!!
|
|
|
|
CXX_BUILD = !!CXX_BUILD!!
|
|
|
|
-CFLAGS_BUILD = !!CFLAGS_BUILD!!
|
2013-08-05 21:24:35 +02:00
|
|
|
-CXXFLAGS_BUILD = !!CXXFLAGS_BUILD!!
|
2012-04-28 08:56:42 +02:00
|
|
|
-LDFLAGS_BUILD = !!LDFLAGS_BUILD!!
|
|
|
|
+CFLAGS_BUILD = !!CFLAGS!! !!CFLAGS_BUILD!!
|
2013-08-05 21:24:35 +02:00
|
|
|
+CXXFLAGS_BUILD = !!CXXFLAGS!! !!CXXFLAGS_BUILD!!
|
2012-04-28 08:56:42 +02:00
|
|
|
+LDFLAGS_BUILD = !!LDFLAGS!! !!LDFLAGS_BUILD!! !!LIBS!!
|
|
|
|
STAGE = !!STAGE!!
|
|
|
|
SETTING_OBJS_DIR = !!SETTING_OBJS_DIR!!
|
|
|
|
|
|
|
|
ENDIAN_TARGETS := endian_host.h endian_target.h $(ENDIAN_CHECK)
|
|
|
|
|
|
|
|
+# Make sure endian_host.h is reachable as if it was in the src/ dir
|
|
|
|
+CFLAGS_BUILD += -I $(SETTING_OBJS_DIR)
|
|
|
|
+
|
|
|
|
# Check if we want to show what we are doing
|
|
|
|
ifdef VERBOSE
|
|
|
|
Q =
|