Output of gdlib-config --libs is wrong
Issue #17
resolved
{{{ $ gdlib-config --libs }}}
gives {{{ -ljpeg -lfontconfig -lfreetype -lpng12 -lz -lm }}}
Why is {{{ -lgd }}} missing in this list?
I tried generating the shell script gdlib-config from config/ but failed.
Comments (3)
-
-
- changed milestone to 2.1.0
-
- changed status to resolved
This seems to be fixed at 25a688908c466fbb0ef1fccacb24932aeb974faf.
- Log in to comment
Hence, gdlib-config --libs utility is used to get the information about linking libraries dependent on gdlib. So, following patch can do the work to get the desired information :
diff --git a/config/gdlib-config.in b/config/gdlib-config.in index 93f7282..f8dee57 100644 --- a/config/gdlib-config.in +++ b/config/gdlib-config.in @@ -71,7 +71,7 @@ while test $# -gt 0; do echo @LDFLAGS@ ;; --libs) - echo @LIBS@ @LIBICONV@ + echo "-lgd" @LIBS@ @LIBICONV@ ;; --cflags|--includes) echo -I@includedir@ @@ -84,7 +84,7 @@ while test $# -gt 0; do echo "includedir: $includedir" echo "cflags: -I@includedir@" echo "ldflags: @LDFLAGS@" - echo "libs: @LIBS@ @LIBICONV@" + echo "libs: -lgd @LIBS@ @LIBICONV@" echo "libdir: $libdir" echo "features: @FEATURES@" ;;
$ gdlib-config --libs gives -lgd -ljpeg -lfreetype -lz -lm