Output of gdlib-config --libs is wrong

Issue #17 resolved
Former user created an issue

{{{ $ 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)

  1. jitendar_kumar

    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

  2. Log in to comment