1. libgd
  2. Untitled project
  3. gd-libgd
  4. Issues

Issues

Issue #17 resolved

Output of gdlib-config --libs is wrong

Anonymous 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