aboutsummaryrefslogtreecommitdiff
path: root/config.mk.dist
diff options
context:
space:
mode:
authorSzabolcs Nagy <szabolcs.nagy@arm.com>2018-07-27 11:14:11 +0100
committerSzabolcs Nagy <szabolcs.nagy@arm.com>2018-07-30 13:16:37 +0100
commita202746b8841f77ebfe63f38d08832afc1155e03 (patch)
tree579e42671fae8ce90cae718a66516b1e98358f5d /config.mk.dist
parentc5a8042e506925fb107d370636f0de5536c2cb92 (diff)
downloadarm-optimized-routines-a202746b8841f77ebfe63f38d08832afc1155e03.tar.gz
Add separate HOST_CFLAGS, HOST_LDFLAGS and HOST_LDLIBS make variables
Don't use target flags when building host tools. The example config.mk.dist is updated accordingly.
Diffstat (limited to 'config.mk.dist')
-rw-r--r--config.mk.dist9
1 files changed, 8 insertions, 1 deletions
diff --git a/config.mk.dist b/config.mk.dist
index edc1a2f..d951a93 100644
--- a/config.mk.dist
+++ b/config.mk.dist
@@ -16,9 +16,16 @@
# limitations under the License.
HOST_CC = gcc
+HOST_CFLAGS = -std=c99 -O2
+HOST_CFLAGS += -Wall -Wno-unused-function
+
CC = $(CROSS_COMPILE)gcc
CFLAGS = -std=c99 -pipe -O3
-CFLAGS += -Wall -Wno-missing-braces -Wno-unused-function
+CFLAGS += -Wall -Wno-missing-braces
+
+# Enable debug info.
+HOST_CFLAGS += -g
+CFLAGS += -g
# Use if the target FPU only supports single precision.
#CFLAGS += WANT_SINGLEPREC