@@ -1,151 +0,0 @@
1−some hosts are more anal about ar usage than others
2−http://bugs.gentoo.org/107428
3−
4−respect user LDFLAGS
5−http://bugs.gentoo.org/126872
6−
7−--- lib/makefile.src
8−+++ lib/makefile.src
9−@@ -181,8 +181,7 @@
10− # Rebuild the library from all the .o files.
11− buildlib: $(OBJS)
12− -rm -f $(LIBNAME)
13−- ar rc $(LIBNAME)
14−- ar q $(LIBNAME) $(OBJS)
15−+ ar rc $(LIBNAME) $(OBJS)
16− #ifndef NO_RANLIB
17− ranlib $(LIBNAME)
18− #endif
19−--- tools/clock/makefile.src
20−+++ tools/clock/makefile.src
21−@@ -6,7 +6,7 @@ install: rleClock
22− mv rleClock ../rleClock.out
23−
24− rleClock:rleClock.o font.o
25−- ${CC} ${CFLAGS} rleClock.o font.o -lm ${LIBS} -o rleClock
26−+ ${CC} ${CFLAGS} ${LDFLAGS} rleClock.o font.o ${LIBS} -o rleClock -lm
27−
28− font.c:font.src makeFont
29− chmod +x makeFont
30−--- tools/makefile.src
31−+++ tools/makefile.src
32−@@ -62,21 +62,21 @@ applymap.out rlebg.out: $(RI)/rle_raw.h
33− pyrlib.o: pyrlib.c $(RI)/pyramid.h $(RI)/rle.h $(RI)/rle_config.h
34− $(CC) $(CFLAGS) pyrlib.c -c
35− pyrmask.out: pyrlib.o pyrmask.c $(RI)/pyramid.h
36−- $(CC) $(CFLAGS) -I$(RI) pyrmask.c pyrlib.o $(LIBS) -lm -o pyrmask.new
37−+ $(CC) $(LDFLAGS) $(CFLAGS) -I$(RI) pyrmask.c pyrlib.o $(LIBS) -lm -o pyrmask.new
38− mv pyrmask.new pyrmask.out
39−
40− fant.out: fant.o mallocNd.o
41−- $(CC) $(CFLAGS) -I$(RI) fant.o mallocNd.o $(LIBS) -lm -o fant.new
42−+ $(CC) $(LDFLAGS) $(CFLAGS) -I$(RI) fant.o mallocNd.o $(LIBS) -lm -o fant.new
43− mv fant.new fant.out
44−
45− # rlebox and crop use some common code.
46− rle_box.o: $(RI)/rle.h $(RI)/rle_config.h $(RI)/rle_raw.h
47−
48− crop.out: crop.c rle_box.o
49−- ${CC} ${CFLAGS} crop.c rle_box.o ${LIBS} -o crop.new
50−+ ${CC} ${LDFLAGS} ${CFLAGS} crop.c rle_box.o ${LIBS} -o crop.new
51− mv crop.new crop.out
52− rlebox.out: rlebox.c rle_box.o
53−- ${CC} ${CFLAGS} rlebox.c rle_box.o ${LIBS} -o rlebox.new
54−+ ${CC} ${LDFLAGS} ${CFLAGS} rlebox.c rle_box.o ${LIBS} -o rlebox.new
55− mv rlebox.new rlebox.out
56−
57− # rleClock has it's own directory, must be built special
58−@@ -100,7 +100,7 @@ clean: clean-pgm
59− .SUFFIXES:
60− .SUFFIXES: .out .c .o
61− .c.out:
62−- $(CC) $(CFLAGS) $< $(LIBS) -lm -o $*.new
63−+ $(CC) $(LDFLAGS) $(CFLAGS) $< $(LIBS) -lm -o $*.new
64− mv $*.new $@
65−
66− .c.o:
67−--- cnv/makefile.src
68−+++ cnv/makefile.src
69−@@ -76,13 +76,13 @@ PBMDIR =
70− # ppmtorle - ppm format to RLE
71− # rletoppm - RLE to ppm format
72− pgmtorle.out: pgmtorle.c
73−- $(CC) $(CFLAGS) $(INCPBMPLUS) $*.c $(LIBS) $(LIBPBMPLUS) -o $*.new
74−+ $(CC) $(CFLAGS) $(LDFLAGS) $(INCPBMPLUS) $*.c $(LIBS) $(LIBPBMPLUS) -o $*.new
75− mv $*.new $@
76− ppmtorle.out: ppmtorle.c
77−- $(CC) $(CFLAGS) $(INCPBMPLUS) $*.c $(LIBS) $(LIBPBMPLUS) -o $*.new
78−+ $(CC) $(CFLAGS) $(LDFLAGS) $(INCPBMPLUS) $*.c $(LIBS) $(LIBPBMPLUS) -o $*.new
79− mv $*.new $@
80− rletoppm.out: rletoppm.c
81−- $(CC) $(CFLAGS) $(INCPBMPLUS) $*.c $(LIBS) $(LIBPBMPLUS) -o $*.new
82−+ $(CC) $(CFLAGS) $(LDFLAGS) $(INCPBMPLUS) $*.c $(LIBS) $(LIBPBMPLUS) -o $*.new
83− mv $*.new $@
84− #endif
85−
86−@@ -95,10 +95,10 @@ rletoppm.out: rletoppm.c
87− # iristorle/rletoiris - Convert between RLE and SGI image format.
88− #
89− iristorle.out: iristorle.c
90−- $(CC) $(CFLAGS) -I/usr/include/gl $*.c $(LIBS) -limage -o $*.new
91−+ $(CC) $(CFLAGS) $(LDFLAGS) -I/usr/include/gl $*.c $(LIBS) -limage -o $*.new
92− mv $*.new $@
93− rletoiris.out: rletoiris.c
94−- $(CC) $(CFLAGS) -I/usr/include/gl $*.c $(LIBS) -limage -o $*.new
95−+ $(CC) $(CFLAGS) $(LDFLAGS) -I/usr/include/gl $*.c $(LIBS) -limage -o $*.new
96− mv $*.new $@
97− #endif
98−
99−@@ -108,10 +108,10 @@ TIFFDIR =
100− # tifftorle - Convert TIFF images to RLE
101− # rletotiff - Convert RLE images to TIFF
102− rletotiff.out: rletotiff.c
103−- $(CC) $(CFLAGS) $(INCTIFF) $*.c $(LIBS) $(LIBTIFF) -lm -o $*.new
104−+ $(CC) $(CFLAGS) $(LDFLAGS) $(INCTIFF) $*.c $(LIBS) $(LIBTIFF) -lm -o $*.new
105− mv $*.new $@
106− tifftorle.out: tifftorle.c
107−- $(CC) $(CFLAGS) $(INCTIFF) $*.c $(LIBS) $(LIBTIFF) -lm -o $*.new
108−+ $(CC) $(CFLAGS) $(LDFLAGS) $(INCTIFF) $*.c $(LIBS) $(LIBTIFF) -lm -o $*.new
109− mv $*.new $@
110− #endif
111−
112−@@ -125,7 +125,7 @@ tifftorle.out: tifftorle.c
113− # Will build with the default rule.
114− # rletorla - RLE to Wavefront RLA
115− rletorla.out: rletorla.c
116−- $(CC) $(CFLAGS) $*.c $(LIBS) $(LIBWAVEFRONT) -lm -o $*.new
117−+ $(CC) $(CFLAGS) $(LDFLAGS) $*.c $(LIBS) $(LIBWAVEFRONT) -lm -o $*.new
118− mv $*.new $@
119− #endif WAVEFRONT
120−
121−@@ -144,7 +144,7 @@ pristine: pristine-pgm
122− .SUFFIXES:
123− .SUFFIXES: .out .c
124− .c.out:
125−- $(CC) $(CFLAGS) $*.c $(LIBS) -lm -o $*.new
126−+ $(CC) $(CFLAGS) $(LDFLAGS) $*.c $(LIBS) -lm -o $*.new
127− mv $*.new $@
128−
129− # Dependency lines. Make sure to #ifdef them.
130−--- cnv/rletoabA62/makefile.src
131−+++ cnv/rletoabA62/makefile.src
132−@@ -15,7 +15,7 @@ all : $(PGMS)
133− # Executables. The .out will be stripped off in the install action.
134−
135− rletoabA62.out : rletoabA62.o rle.o
136−- $(CC) $(CFLAGS) -o rletoabA62.new \
137−+ $(CC) $(CFLAGS) $(LDFLAGS) -o rletoabA62.new \
138− rletoabA62.o rle.o $(LIBS)
139− mv rletoabA62.new rletoabA62.out
140−
141−--- cnv/rletogif/makefile.src
142−+++ cnv/rletogif/makefile.src
143−@@ -15,7 +15,7 @@ all: $(PGMS)
144− # The executable. The ".out" will be stripped off in the install action.
145−
146− rletogif.out: ${OBJ}
147−- ${CC} ${CFLAGS} ${OBJ} ${LIBS} -o rletogif.new
148−+ ${CC} ${CFLAGS} ${LDFLAGS} ${OBJ} ${LIBS} -o rletogif.new
149− mv rletogif.new rletogif.out
150−
151− # Incremental install, copies executable to DEST dir.