]> git.pld-linux.org Git - packages/crossmingw32-libpng.git/blame - libpng-norpath.patch
- remaining part is back (lib linking, compat symlink instead of duplicate lib)
[packages/crossmingw32-libpng.git] / libpng-norpath.patch
CommitLineData
f67cb19d
JB
1--- libpng-1.2.9/scripts/makefile.gcmmx.orig 2006-04-17 01:12:53.813611500 +0200
2+++ libpng-1.2.9/scripts/makefile.gcmmx 2006-04-17 01:13:47.872990000 +0200
3@@ -72,8 +72,8 @@
f23316eb
JB
4 # -m486 -malign-double -ffast-math \
5 # $(ALIGN) -funroll-loops -funroll-all-loops -fomit-frame-pointer
6
7-LDFLAGS=-L. -Wl,-rpath,. -L$(ZLIBLIB) -Wl,-rpath,$(ZLIBLIB) -lpng12 -lz -lm
8-LDFLAGS_A=-L$(ZLIBLIB) -Wl,-rpath,$(ZLIBLIB) libpng.a -lz -lm
5df06dd2
PS
9+LDFLAGS=-L. -lpng12 -lz -lm
10+LDFLAGS_A=libpng.a -lz -lm
f23316eb 11
f67cb19d
JB
12
13 INCPATH=$(prefix)/include
14@@ -122,7 +122,7 @@
f23316eb
JB
15 echo I_opts=\"-I$(INCPATH)/$(LIBNAME)\"; \
16 echo cppflags=\"-DPNG_THREAD_UNSAFE_OK -DPNG_USE_PNGGCCRD\"; \
17 echo L_opts=\"-L$(LIBPATH)\"; \
18- echo R_opts=\"-Wl,-rpath,$(LIBPATH)\"; \
19+ echo R_opts=\"\"; \
20 echo libs=\"-lpng12 -lz -lm\"; \
21 cat scripts/libpng-config-body.in ) > libpng-config
22 chmod +x libpng-config
5df06dd2 23@@ -239,7 +239,6 @@
f23316eb
JB
24 test-installed:
25 $(CC) -I$(ZLIBINC) \
f67cb19d 26 `$(BINPATH)/$(LIBNAME)-config --cflags` pngtest.c \
f23316eb 27- -L$(ZLIBLIB) -Wl,-rpath,$(ZLIBLIB) \
f67cb19d 28 -o pngtesti `$(BINPATH)/$(LIBNAME)-config --ldflags`
f23316eb
JB
29 ./pngtesti pngtest.png
30
f67cb19d
JB
31--- libpng-1.2.9/scripts/makefile.linux.orig 2006-04-17 01:12:53.813611500 +0200
32+++ libpng-1.2.9/scripts/makefile.linux 2006-04-17 01:14:15.322705500 +0200
33@@ -50,8 +50,8 @@
f23316eb
JB
34 CFLAGS=-I$(ZLIBINC) -Wall $(OPT_FLAGS) -funroll-loops \
35 $(ALIGN) # $(WARNMORE) -g -DPNG_DEBUG=5
36
37-LDFLAGS=-L. -Wl,-rpath,. -L$(ZLIBLIB) -Wl,-rpath,$(ZLIBLIB) -lpng12 -lz -lm
38-LDFLAGS_A=-L$(ZLIBLIB) -Wl,-rpath,$(ZLIBLIB) libpng.a -lz -lm
5df06dd2
PS
39+LDFLAGS=-L. -lpng12 -lz -lm
40+LDFLAGS_A=libpng.a -lz -lm
f23316eb 41
f67cb19d
JB
42 INCPATH=$(prefix)/include
43 LIBPATH=$(exec_prefix)/lib
44@@ -98,7 +98,7 @@
f23316eb
JB
45 echo prefix=\"$(prefix)\"; \
46 echo I_opts=\"-I$(INCPATH)/$(LIBNAME)\"; \
47 echo L_opts=\"-L$(LIBPATH)\"; \
48- echo R_opts=\"-Wl,-rpath,$(LIBPATH)\"; \
49+ echo R_opts=\"\"; \
50 echo libs=\"-lpng12 -lz -lm\"; \
51 cat scripts/libpng-config-body.in ) > libpng-config
52 chmod +x libpng-config
5df06dd2 53@@ -207,7 +207,6 @@
f23316eb
JB
54 test-installed:
55 $(CC) -I$(ZLIBINC) \
f67cb19d 56 `$(BINPATH)/$(LIBNAME)-config --cflags` pngtest.c \
f23316eb 57- -L$(ZLIBLIB) -Wl,-rpath,$(ZLIBLIB) \
f67cb19d 58 -o pngtesti `$(BINPATH)/$(LIBNAME)-config --ldflags`
f23316eb
JB
59 ./pngtesti pngtest.png
60
This page took 0.188159 seconds and 4 git commands to generate.