pkg-config options reordering

Max Khardin max.khardin at gmail.com
Mon Mar 28 04:35:59 PDT 2011


Hi, i've got blas.pc which has following contents:

prefix=/opt/intel/composerxe-2011.2.137/mkl
libdir=${prefix}/lib/ia32/
includedir=${prefix}/include
Name: mkl-sequential
Description: Intel Math Kernel Library: linear algebra, fft, math functions
Version: 10.3.2.137
URL: http://software.intel.com/en-us/articles/intel-mkl/
Libs: -L${libdir} -Wl,--start-group  -lmkl_core -lmkl_intel
-lmkl_sequential -Wl,--end-group -pthread
Cflags: -I${includedir}

Problem is, if I call pkg-config --libs blas, I get the following:
-Wl,--start-group -Wl,--end-group -pthread
-L/opt/intel/composerxe-2011.2.137/mkl/lib/ia32/ -lmkl_core
-lmkl_intel -lmkl_sequential

Question is, is this a bug or this is intended behavior?


More information about the pkg-config mailing list