From: | "Mike Frysinger (vapier)" <vapier@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in sys-firmware/sgabios/files: sgabios-0.1_pre8-build-cc.patch |
Date: | Tue, 07 Jul 2015 07:21:51 |
Message-Id: | 20150707072006.52694756@oystercatcher.gentoo.org |
1 | vapier 15/07/07 07:20:06 |
2 | |
3 | Added: sgabios-0.1_pre8-build-cc.patch |
4 | Log: |
5 | Use BUILD_CC when compiling the csum8 build-only tool #552280 by José Pekkarinen. |
6 | |
7 | (Portage version: 2.2.20/cvs/Linux x86_64, signed Manifest commit with key D2E96200) |
8 | |
9 | Revision Changes Path |
10 | 1.1 sys-firmware/sgabios/files/sgabios-0.1_pre8-build-cc.patch |
11 | |
12 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-firmware/sgabios/files/sgabios-0.1_pre8-build-cc.patch?rev=1.1&view=markup |
13 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-firmware/sgabios/files/sgabios-0.1_pre8-build-cc.patch?rev=1.1&content-type=text/plain |
14 | |
15 | Index: sgabios-0.1_pre8-build-cc.patch |
16 | =================================================================== |
17 | https://bugs.gentoo.org/552280 |
18 | |
19 | --- a/Makefile |
20 | +++ b/Makefile |
21 | @@ -20,6 +20,9 @@ |
22 | BUILD_USER = \"$(shell whoami)\" |
23 | |
24 | CFLAGS := -Wall -Os -m32 -nostdlib |
25 | +BUILD_CFLAGS := -Wall -O2 |
26 | +BUILD_CC ?= $(CC) |
27 | +BUILD_LD ?= $(BUILD_CC) |
28 | |
29 | ASFLAGS := $(CFLAGS) |
30 | ASFLAGS += -DBUILD_DATE="$(BUILD_DATE)" |
31 | @@ -55,7 +56,7 @@ |
32 | $(LD) $(LDFLAGS) $(OBJS) -o $@ |
33 | |
34 | csum8: csum8.c |
35 | - $(CC) -Wall -O2 -o $@ $< |
36 | + $(BUILD_CC) $(BUILD_CFLAGS) $(BUILD_CPPFLAGS) -o $@ $< |
37 | |
38 | sgabios.o: buildinfo |