7756bf12405b769c67c1b190b0b41aabe2372771
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / gd / 0001-gdlib-config.patch
1 Fix gdlib-config
2
3 Since the @LIBICONV@ macro doesn't get replaced at compile time, we
4 end up installing an invalid gdlib-config: the gdlib-config --libs
5 says that one should link against @LIBICONV@ which obviously doesn't
6 work.
7
8 Use the OpenWRT patch from
9 https://dev.openwrt.org/browser/packages/libs/gd/patches/101-gdlib-config.patch
10
11 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
12
13 --- a/config/gdlib-config.in
14 +++ b/config/gdlib-config.in
15 @@ -71,7 +71,7 @@ while test $# -gt 0; do
16         echo @LDFLAGS@
17         ;;
18      --libs)
19 -       echo -lgd @LIBS@ @LIBICONV@
20 +       echo -lgd @LIBS@
21         ;;
22      --cflags|--includes)
23         echo -I@includedir@
24 @@ -84,7 +84,7 @@ while test $# -gt 0; do
25         echo "includedir: $includedir"
26         echo "cflags:     -I@includedir@"
27         echo "ldflags:    @LDFLAGS@"
28 -       echo "libs:       @LIBS@ @LIBICONV@"
29 +       echo "libs:       @LIBS@"
30         echo "libdir:     $libdir"
31         echo "features:   @FEATURES@"
32         ;;