Contents of /trunk/libtommath/patches/libtommath-0.42.0-build-fixes.patch
Parent Directory | Revision Log
Revision 1316 -
(show annotations)
(download)
Fri May 6 18:19:57 2011 UTC (13 years, 4 months ago) by niro
File size: 1695 byte(s)
Fri May 6 18:19:57 2011 UTC (13 years, 4 months ago) by niro
File size: 1695 byte(s)
fixed patch
1 | diff -Naur libtommath-0.42.0/makefile.shared libtommath-0.42.0-magellan/makefile.shared |
2 | --- libtommath-0.42.0/makefile.shared 2010-07-23 16:27:20.000000000 +0200 |
3 | +++ libtommath-0.42.0-magellan/makefile.shared 2011-05-06 19:41:29.000000000 +0200 |
4 | @@ -3,7 +3,7 @@ |
5 | #Tom St Denis |
6 | VERSION=0:41 |
7 | |
8 | -CC = libtool --mode=compile --tag=CC gcc |
9 | +LTCOMPILE = libtool --mode=compile --tag=CC $(CC) |
10 | |
11 | CFLAGS += -I./ -Wall -W -Wshadow -Wsign-compare |
12 | |
13 | @@ -82,21 +82,24 @@ |
14 | |
15 | objs: $(OBJECTS) |
16 | |
17 | +.c.o: |
18 | + $(LTCOMPILE) $(CFLAGS) $(LDFLAGS) -o $@ -c $< |
19 | + |
20 | $(LIBNAME): $(OBJECTS) |
21 | - libtool --mode=link gcc *.lo -o $(LIBNAME) -rpath $(LIBPATH) -version-info $(VERSION) |
22 | + libtool --mode=link --tag=CC $(CC) $(LDFLAGS) *.lo -o $(LIBNAME) -rpath $(LIBPATH) -version-info $(VERSION) |
23 | |
24 | install: $(LIBNAME) |
25 | install -d -g $(GROUP) -o $(USER) $(DESTDIR)$(LIBPATH) |
26 | libtool --mode=install install -c $(LIBNAME) $(DESTDIR)$(LIBPATH)/$(LIBNAME) |
27 | install -d -g $(GROUP) -o $(USER) $(DESTDIR)$(INCPATH) |
28 | - install -g $(GROUP) -o $(USER) $(HEADERS) $(DESTDIR)$(INCPATH) |
29 | + install -m 644 -g $(GROUP) -o $(USER) $(HEADERS) $(DESTDIR)$(INCPATH) |
30 | |
31 | test: $(LIBNAME) demo/demo.o |
32 | - gcc $(CFLAGS) -c demo/demo.c -o demo/demo.o |
33 | - libtool --mode=link gcc -o test demo/demo.o $(LIBNAME_S) |
34 | + $(CC) $(CFLAGS) -c demo/demo.c -o demo/demo.o |
35 | + libtool --mode=link --tag=CC $(CC) $(LDFLAGS) -o test demo/demo.o $(LIBNAME_S) |
36 | |
37 | mtest: test |
38 | - cd mtest ; gcc $(CFLAGS) mtest.c -o mtest |
39 | + cd mtest ; $(CC) $(CFLAGS) $(LDFLAGS) mtest.c -o mtest |
40 | |
41 | timing: $(LIBNAME) |
42 | - gcc $(CFLAGS) -DTIMER demo/timing.c $(LIBNAME_S) -o ltmtest |
43 | + libtool --mode=link --tag=CC $(CC) $(CFLAGS) $(LDFLAGS) -DTIMER demo/timing.c $(LIBNAME_S) -o ltmtest |