separation of CPPFLAGS/CFLAGS, LDFLAGS/LIBS
Submitted by Stefan Kost
Assigned to Tollef Fog Heen @tfheen
Description
pkg-config does not separate:
- CPPFLAGS and CFLAGS (both in --cflags)
- LDFLAGS and LIBADD/LDADD (both in --libs)
That is a bit troublesome when used with automake (it can override what people specify when running ./configure ... CPPFLAGS=-D..."). People are forced to put the output of --cflags into CFLAGS even though its mostly -I and -D stuff. For --libs its probably less critical as it should mostly contain -L and -l and not any other linker directives.
Any idea how to solve this?