summaryrefslogtreecommitdiff
path: root/package/libpng/patches/100-config_fix.patch
blob: 453d271096c2ac1cbbc89f9524d50411f633a1fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--- libpng3-1.2.5.0.orig/scripts/libpng-config-body.in
+++ libpng3-1.2.5.0/scripts/libpng-config-body.in
@@ -83,6 +83,7 @@

     --static)
         R_opts=""
+        libs=${all_libs}
         ;;

     *)
--- libpng3-1.2.5.0.orig/scripts/libpng.pc.in
+++ libpng3-1.2.5.0/scripts/libpng.pc.in
@@ -7,5 +7,5 @@
 Name: libpng12
 Description: Loads and saves PNG files
 Version: 1.2.8
-Libs: -L${libdir} -lpng12 -lz -lm
+Libs: -lpng12
 Cflags: -I${includedir}/libpng12