1 |
truedfx 08/10/06 20:24:46 |
2 |
|
3 |
Added: icon-9.4.3-flags.patch |
4 |
Log: |
5 |
Use CC/CFLAGS/LDFLAGS variables (#240234 by Diego Pettenò) |
6 |
(Portage version: 2.2_rc11/cvs/Linux 2.6.26-gentoo-r1 x86_64) |
7 |
|
8 |
Revision Changes Path |
9 |
1.1 dev-lang/icon/files/icon-9.4.3-flags.patch |
10 |
|
11 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/icon/files/icon-9.4.3-flags.patch?rev=1.1&view=markup |
12 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/icon/files/icon-9.4.3-flags.patch?rev=1.1&content-type=text/plain |
13 |
|
14 |
Index: icon-9.4.3-flags.patch |
15 |
=================================================================== |
16 |
--- icon.v943src/src/common/Makefile |
17 |
+++ icon.v943src/src/common/Makefile |
18 |
@@ -8,7 +8,7 @@ |
19 |
common: doincl $(OBJS) gpxmaybe |
20 |
|
21 |
doincl: doincl.c ../h/arch.h |
22 |
- $(CC) $(CFLAGS) -o doincl doincl.c |
23 |
+ $(CC) $(CFLAGS) $(LDFLAGS) -o doincl doincl.c |
24 |
-./doincl -o ../../bin/rt.h ../h/rt.h |
25 |
|
26 |
patchstr: patchstr.c |
27 |
@@ -29,7 +29,7 @@ |
28 |
../h/typedefs.h ../h/mproto.h ../h/cpuconf.h |
29 |
|
30 |
../h/arch.h: infer.c |
31 |
- $(CC) $(CFLAGS) -o infer infer.c |
32 |
+ $(CC) $(CFLAGS) $(LDFLAGS) -o infer infer.c |
33 |
./infer >../h/arch.h |
34 |
|
35 |
identify.o: ../h/version.h |
36 |
@@ -46,7 +46,7 @@ |
37 |
|
38 |
# for rswitch, $(CFLAGS) is deliberately omitted (-O may cause problems) |
39 |
rswitch.o: ../h/define.h ../h/arch.h $(RSW) |
40 |
- $(CC) -c $(RSW) |
41 |
+ $(CC) $(CFLAGS) -O0 -c $(RSW) |
42 |
|
43 |
|
44 |
# The following section is needed if changes are made to the Icon grammar, |
45 |
--- icon.v943src/src/runtime/Makefile |
46 |
+++ icon.v943src/src/runtime/Makefile |
47 |
@@ -39,7 +39,7 @@ |
48 |
|
49 |
iconx: $(OBJS) |
50 |
cd ../common; $(MAKE) |
51 |
- $(CC) $(RLINK) -o iconx $(OBJS) $(XL) $(RLIBS) $(TL) |
52 |
+ $(CC) $(LDFLAGS) $(RLINK) -o iconx $(OBJS) $(XL) $(RLIBS) $(TL) |
53 |
cp iconx ../../bin |
54 |
strip $(SFLAGS) ../../bin/iconx$(EXE) |