blob: dae8ffd25980380df13d51ab02f767294e913759 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
$NetBSD: patch-unix_Makefile,v 1.3 2017/11/29 16:34:40 hauke Exp $
cpp(1) only accepts one file for input, we want cc -E here.
--- unix/Makefile.orig 2017-08-23 01:50:11.000000000 +0000
+++ unix/Makefile
@@ -73,6 +73,7 @@ LDFLAGS_ARCH = -Wl,-map,$@.map -Wl,-dead
else
# Use gcc syntax for map file
LDFLAGS_ARCH = -Wl,-Map=$@.map,--cref -Wl,--gc-sections
+CPP = $(CC) -E
endif
LDFLAGS = $(LDFLAGS_MOD) $(LDFLAGS_ARCH) -lm $(LDFLAGS_EXTRA)
|