I'd like to use pkg-config to change the include dirs for a package, but it looks like it doesn't accept any options.After issuing the following command:pkg-config --cflags ImageMagick -fopenmp -DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=16 -I/usr/include/x86_64-linux-gnu/ImageMagick-6 -I/usr/include/ImageMagick-6...it instantly fails right at the first cflag option:Unknown option -fopenmpIs this a normal behavior? How can I make it work?PS: Using Debian Jessie.
pkg-config doesn't recognizing any options for some reason
package management;pkg config
pkg-config outputs flags intended to be used with a compiler or linker. Typically youd use it like this:gcc $(pkg-config --cflags ImageMagick) You cant use the pkg-config command to change the paths used by a given package. The paths are defined in the corresponding .pc file, e.g. /usr/lib/x86_64-linux-gnu/pkgconfig/ImageMagick.pc. To customize that, the safest option is to copy that file somewhere else, modify it as appropriate, and specify the path to the file using the PKG_CONFIG_PATH environment variable.Note that if you built the ImageMagick libraries yourself, the build should have produced a valid .pc file for you. You also shouldnt use .pc files to specify options such as -fopenmp; those shouldngo in your build command, in your makefile or in the CPPFLAGS, CFLAGS or CXXFLAGS environment variables (or makefile variables).