the curl-config manpage and documentation html page should state how it should be used in environments where ld --as-needed is default (e.g. ubuntu)
similar to how docs/examples/README was updated, namely to state that it must be used like this:
`curl-config --cc --cflags` -o example example.c `curl-config --libs`
these files need updating:
docs/curl-config.html
docs/curl-config.1
Thanks for the report, this problem is now fixed in the git repository.
To try it out, you either checkout/update your git clone: http://curl.haxx.se/source.html
or you try tomorrow's daily snapshot: http://curl.haxx.se/snapshots/