Gentoo Archives: gentoo-commits

From: "Victor Ostorga (vostorga)" <vostorga@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-libs/libtommath/files: libtommath-0.36-CC.patch libtommath-0.41-CC.patch
Date: Tue, 28 Jul 2009 21:53:34
Message-Id: E1MVubz-0007Eh-UQ@stork.gentoo.org
1 vostorga 09/07/28 21:53:31
2
3 Added: libtommath-0.36-CC.patch libtommath-0.41-CC.patch
4 Log:
5 Respecting CC variable, closes bug #243928
6 (Portage version: 2.1.6.13/cvs/Linux i686)
7
8 Revision Changes Path
9 1.1 dev-libs/libtommath/files/libtommath-0.36-CC.patch
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/libtommath/files/libtommath-0.36-CC.patch?rev=1.1&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/libtommath/files/libtommath-0.36-CC.patch?rev=1.1&content-type=text/plain
13
14 Index: libtommath-0.36-CC.patch
15 ===================================================================
16 diff -NrU5 libtommath-0.36.original/makefile.shared libtommath-0.36/makefile.shared
17 --- libtommath-0.36.original/makefile.shared 2009-07-28 21:10:57.000000000 -0600
18 +++ libtommath-0.36/makefile.shared 2009-07-28 21:20:30.000000000 -0600
19 @@ -1,11 +1,11 @@
20 #Makefile for GCC
21 #
22 #Tom St Denis
23 VERSION=0:36
24
25 -CC = libtool --mode=compile gcc
26 +LTCOMPILE = libtool --mode=compile $(CC)
27
28 CFLAGS += -I./ -Wall -W -Wshadow -Wsign-compare
29
30 ifndef IGNORE_SPEED
31
32 @@ -78,24 +78,27 @@
33 bn_mp_init_multi.o bn_mp_clear_multi.o bn_mp_exteuclid.o bn_mp_toradix_n.o \
34 bn_mp_prime_random_ex.o bn_mp_get_int.o bn_mp_sqrt.o bn_mp_is_square.o bn_mp_init_set.o \
35 bn_mp_init_set_int.o bn_mp_invmod_slow.o bn_mp_prime_rabin_miller_trials.o \
36 bn_mp_to_signed_bin_n.o bn_mp_to_unsigned_bin_n.o
37
38 +.c.o:
39 + $(LTCOMPILE) $(CFLAGS) $(LDFLAGS) -o $@ -c $<
40 +
41 $(LIBNAME): $(OBJECTS)
42 - libtool --mode=link --tag=CC gcc $(LDFLAGS) *.lo -o $(LIBNAME) -rpath $(LIBPATH) -version-info $(VERSION)
43 - libtool --mode=link --tag=CC gcc *.o -o $(LIBNAME_S)
44 + libtool --mode=link --tag=CC $(CC) $(LDFLAGS) *.lo -o $(LIBNAME) -rpath $(LIBPATH) -version-info $(VERSION)
45 + libtool --mode=link --tag=CC $(CC) *.o -o $(LIBNAME_S)
46
47 install: $(LIBNAME) $(HEADERS)
48 install -d -g $(GROUP) -o $(USER) $(DESTDIR)$(LIBPATH)
49 install -d -g $(GROUP) -o $(USER) $(DESTDIR)$(INCPATH)
50 libtool --mode=install install -c $(LIBNAME) $(DESTDIR)$(LIBPATH)/$(LIBNAME)
51 install -g $(GROUP) -o $(USER) $(HEADERS) $(DESTDIR)$(INCPATH)
52
53 test: $(LIBNAME) demo/demo.o
54 - gcc $(CFLAGS) -c demo/demo.c -o demo/demo.o
55 - libtool --mode=link gcc $(LDFLAGS) -o test demo/demo.o $(LIBNAME)
56 + $(CC) $(CFLAGS) -c demo/demo.c -o demo/demo.o
57 + libtool --mode=link $(CC) $(LDFLAGS) -o test demo/demo.o $(LIBNAME)
58
59 mtest: test
60 - cd mtest ; gcc $(CFLAGS) $(LDFLAGS) mtest.c -o mtest
61 + cd mtest ; $(CC) $(CFLAGS) $(LDFLAGS) mtest.c -o mtest
62
63 timing: $(LIBNAME)
64 - libtool --mode=link gcc $(CFLAGS) $(LDFLAGS) -DTIMER demo/timing.c $(LIBNAME) -o ltmtest
65 + libtool --mode=link $(CC) $(CFLAGS) $(LDFLAGS) -DTIMER demo/timing.c $(LIBNAME) -o ltmtest
66
67
68
69 1.1 dev-libs/libtommath/files/libtommath-0.41-CC.patch
70
71 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/libtommath/files/libtommath-0.41-CC.patch?rev=1.1&view=markup
72 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/libtommath/files/libtommath-0.41-CC.patch?rev=1.1&content-type=text/plain
73
74 Index: libtommath-0.41-CC.patch
75 ===================================================================
76 diff -NrU5 libtommath-0.41.original/makefile.shared libtommath-0.41/makefile.shared
77 --- libtommath-0.41.original/makefile.shared 2009-07-28 21:59:47.000000000 -0600
78 +++ libtommath-0.41/makefile.shared 2009-07-28 22:01:32.000000000 -0600
79 @@ -1,11 +1,11 @@
80 #Makefile for GCC
81 #
82 #Tom St Denis
83 VERSION=0:41
84
85 -CC = libtool --mode=compile --tag=CC gcc
86 +LTCOMPILE = libtool --mode=compile --tag=CC $(CC)
87
88 CFLAGS += -I./ -Wall -W -Wshadow -Wsign-compare
89
90 ifndef IGNORE_SPEED
91
92 @@ -80,23 +80,26 @@
93 bn_mp_init_set_int.o bn_mp_invmod_slow.o bn_mp_prime_rabin_miller_trials.o \
94 bn_mp_to_signed_bin_n.o bn_mp_to_unsigned_bin_n.o
95
96 objs: $(OBJECTS)
97
98 +.c.o:
99 + $(LTCOMPILE) $(CFLAGS) $(LDFLAGS) -o $@ -c $<
100 +
101 $(LIBNAME): $(OBJECTS)
102 - libtool --mode=link --tag=CC gcc $(LDFLAGS) *.lo -o $(LIBNAME) -rpath $(LIBPATH) -version-info $(VERSION)
103 + libtool --mode=link --tag=CC $(CC) $(LDFLAGS) *.lo -o $(LIBNAME) -rpath $(LIBPATH) -version-info $(VERSION)
104
105 install: $(LIBNAME)
106 install -d -g $(GROUP) -o $(USER) $(DESTDIR)$(LIBPATH)
107 libtool --mode=install install -c $(LIBNAME) $(DESTDIR)$(LIBPATH)/$(LIBNAME)
108 install -d -g $(GROUP) -o $(USER) $(DESTDIR)$(INCPATH)
109 install -m 644 -g $(GROUP) -o $(USER) $(HEADERS) $(DESTDIR)$(INCPATH)
110
111 test: $(LIBNAME) demo/demo.o
112 - gcc $(CFLAGS) -c demo/demo.c -o demo/demo.o
113 - libtool --mode=link gcc $(LDFLAGS) -o test demo/demo.o $(LIBNAME_S)
114 + $(CC) $(CFLAGS) -c demo/demo.c -o demo/demo.o
115 + libtool --mode=link $(CC) $(LDFLAGS) -o test demo/demo.o $(LIBNAME_S)
116
117 mtest: test
118 - cd mtest ; gcc $(CFLAGS) $(LDFLAGS) mtest.c -o mtest
119 + cd mtest ; $(CC) $(CFLAGS) $(LDFLAGS) mtest.c -o mtest
120
121 timing: $(LIBNAME)
122 - libtool --mode=link gcc $(CFLAGS) $(LDFLAGS) -DTIMER demo/timing.c $(LIBNAME_S) -o ltmtest
123 + libtool --mode=link $(CC) $(CFLAGS) $(LDFLAGS) -DTIMER demo/timing.c $(LIBNAME_S) -o ltmtest