Print this page
6648 illumos build should be explicit about C standards
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/grub/grub-0.97/Makefile.solaris.defs
+++ new/usr/src/grub/grub-0.97/Makefile.solaris.defs
1 1 #
2 2 # Copyright 2005 Sun Microsystems, Inc. All rights reserved.
3 3 # Use is subject to license terms.
4 4 #
5 5 include $(SRC)/Makefile.master
6 6
7 7 .KEEP_STATE:
8 8
9 9 VERSION = 0.95
10 10
11 11 # $(POUND_SIGN) is just a #. Used to turn a feature off.
12 12 # The $(POUND_SIGN)POUND_SIGN:sh construct is just so make doesn't have to
13 13 # spawn a shell and redefine POUND_SIGN if it is already defined (e.g.
14 14 # $(SRC)/Makefile.master was already included).
15 15 $(POUND_SIGN)POUND_SIGN:sh = echo '\043'
16 16
17 17
18 18 #
19 19 # Optional features (set to $(POUND_SIGN) to turn off):
20 20 #
21 21 # OPTION_UTILS:
22 22 # Build the userland utilities.
23 23 # NOTE: these utilities will be installed in
24 24 # /platform/$(PLATFORM)/boot/grub, not /boot/grub.
25 25 #
26 26 # OPTION_DOCS:
27 27 # Build and install some GRUB documentations, e.g. man and info files.
28 28 # NOTE: these docs will be installed in
29 29 # /platform/$(PLATFORM)/boot/grub, not /boot/grub.
30 30 #
31 31 # OPTION_FS:
32 32 # Build additional filesystem support into GRUB. This will increase
33 33 # the sizes of stage2 and pxegrub and may cause malfunction.
34 34 #
↓ open down ↓ |
34 lines elided |
↑ open up ↑ |
35 35 # STAGE2_NETBOOT:
36 36 # Include netboot support in stage2 (on by default).
37 37 # This only affects stage2, not pxegrub (diskless support).
38 38 #
39 39 # STAGE2_NETBOOT = $(POUND_SIGN)
40 40 OPTION_UTILS = $(POUND_SIGN)
41 41 OPTION_DOCS = $(POUND_SIGN)
42 42 OPTION_FS = $(POUND_SIGN)
43 43
44 44
45 -BASE_CFLAGS = -B$(GCC_ROOT)/bin/ -g $(CPPFLAGS) $(OPTFLAGS)
45 +BASE_CFLAGS = -B$(GCC_ROOT)/bin/ -g $(CPPFLAGS) $(OPTFLAGS) -std=gnu89
46 46 BASE_CCASFLAGS = -B$(GCC_ROOT)/bin/ -g $(CPPFLAGS) $(OPTFLAGS)
47 47 BASE_LDFLAGS =
48 48
49 49 CC = $(GCC_ROOT)/bin/gcc
50 50 CFLAGS = $(BASE_CFLAGS)
51 51 CCDEPMODE = depmode=none
52 52
53 53 CCAS = $(CC)
54 54 CCASFLAGS = $(BASE_CCASFLAGS)
55 55
56 56 CPP = $(CC) -E
57 57
58 58 # $(ENVCPPFLAGS4), if defined, should be something like "-Y I,somepath".
59 59 # We want to get rid of the "-Y I," part but make's pattern replacement
60 60 # macro reference doesn't allow spaces in it, e.g. $(ENVCPPFLAGS4:-Y I,%=%).
61 61 # So we'll get rid of the "-Y" now and then the "I," later. By the way, this
62 62 # should also work in case $(ENVCPPFLAGS4) is "-YI,somepath" (no space).
63 63 t.ENVCPPFLAGS4 = $(ENVCPPFLAGS4:-Y%=%)
64 64
65 65 CPPFLAGS = $(DEFS) $(INCLUDES) $(WARNFLAGS) \
66 66 $(ENVCPPFLAGS1:-I%=-isystem %) \
67 67 $(ENVCPPFLAGS2:-I%=-isystem %) \
68 68 $(ENVCPPFLAGS3:-I%=-isystem %) \
69 69 $(t.ENVCPPFLAGS4:I,%=-nostdinc -isystem %)
70 70
71 71 CCLD = $(GNU_ROOT)/bin/gld
72 72 LDFLAGS = $(BASE_LDFLAGS)
73 73 LINKFLAGS = -g
74 74 LINK = $(CCLD) $(LINKFLAGS) $(LDFLAGS)
75 75
76 76 DEFS = -DHAVE_CONFIG_H -DSOLARIS_NETBOOT
77 77 OPTFLAGS = -falign-jumps=1 -falign-loops=1 -falign-functions=1
78 78 #WARNFLAGS = -Wall -Wmissing-prototypes -Wunused -Wshadow \
79 79 # -Wpointer-arith -Wundef
80 80
81 81 OBJCOPY = $(GNU_ROOT)/bin/gobjcopy
82 82
83 83 AR = /usr/ccs/bin/ar
84 84 RANLIB = :
85 85
86 86 MKDIR = mkdir -p
↓ open down ↓ |
31 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX