Print this page
8512 libstand won't build with GCC 7.1
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/boot/sys/boot/libstand/Makefile.com
+++ new/usr/src/boot/sys/boot/libstand/Makefile.com
1 1 #
2 2 # This file and its contents are supplied under the terms of the
3 3 # Common Development and Distribution License ("CDDL"), version 1.0.
↓ open down ↓ |
3 lines elided |
↑ open up ↑ |
4 4 # You may only use this file in accordance with the terms of version
5 5 # 1.0 of the CDDL.
6 6 #
7 7 # A full copy of the text of the CDDL should have accompanied this
8 8 # source. A copy of the CDDL is also available via the Internet at
9 9 # http://www.illumos.org/license/CDDL.
10 10 #
11 11
12 12 #
13 13 # Copyright 2016 Toomas Soome <tsoome@me.com>
14 -# Copyright 2016 RackTop Systems.
14 +# Copyright 2017 RackTop Systems.
15 15 #
16 16
17 17 include $(SRC)/Makefile.master
18 18
19 19 AS= $(GNU_ROOT)/bin/gas
20 20 LD= $(GNU_ROOT)/bin/gld
21 21 CC= $(GCC_ROOT)/bin/gcc
22 22
23 23 LIBRARY= libstand.a
24 24
25 25 all install: $(LIBRARY)
26 26
27 27 LIB_BASE= $(SRC)/boot/lib
28 28 LIBSTAND_SRC= $(LIB_BASE)/libstand
29 29
30 30 CPPFLAGS = -nostdinc -I../../../../include -I${LIBSTAND_SRC} -I../../..
31 31 CPPFLAGS += -I../../../sys -I. -I$(SRC)/common/bzip2
32 32
33 33 CFLAGS = -O2 -ffreestanding -Wformat
34 34 CFLAGS += -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -msoft-float
35 35 CFLAGS += -Wno-pointer-sign -Wno-empty-body -Wno-unused-value \
36 36 -Wno-unused-function -Wno-switch \
37 37 -Wno-switch-enum -Wno-parentheses
38 38
39 39 include ${LIBSTAND_SRC}/Makefile.inc
40 40
41 41 $(LIBRARY): $(SRCS) $(OBJS)
42 42 $(AR) $(ARFLAGS) $@ $(OBJS)
43 43
44 44 clean: clobber
45 45 clobber:
46 46 $(RM) $(CLEANFILES) $(OBJS) machine x86 libstand.a
47 47
48 48 machine:
49 49 $(RM) machine
50 50 $(SYMLINK) ../../../$(MACHINE)/include machine
↓ open down ↓ |
26 lines elided |
↑ open up ↑ |
51 51
52 52 x86:
53 53 $(RM) x86
54 54 $(SYMLINK) ../../../x86/include x86
55 55
56 56 $(OBJS): machine x86
57 57
58 58 %.o: $(LIBSTAND_SRC)/%.c
59 59 $(COMPILE.c) $<
60 60
61 +%.o: $(LIB_BASE)/builtins/%.c
62 + $(COMPILE.c) $<
63 +
61 64 %.o: $(LIB_BASE)/libc/net/%.c
62 65 $(COMPILE.c) $<
63 66
64 67 %.o: $(LIB_BASE)/libc/string/%.c
65 68 $(COMPILE.c) $<
66 69
67 70 %.o: $(LIB_BASE)/libc/uuid/%.c
68 71 $(COMPILE.c) $<
69 72
70 73 %.o: $(LIB_BASE)/libz/%.c
71 74 $(COMPILE.c) $<
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX