/usr/lib/pkgconfig/jemalloc.pc contains wrond includedir value after installlation. Should be: includedir=${prefix}/include/jemalloc Actual: includedir=${prefix}/include Ralates to bug 607128
Please read 'man jemalloc' for proper usage of how to include jemalloc.h
Direct include setting is a good solution. But some build systems (like CMake) relies on pkg-config DB and do not allow direct include directory setting (without hardcode patching). See related bug 607128.
I have done spoken with upstream and the pkg-config is correct. I will not argue the point Cmake needs to be fixed no jemalloc
Ye, this time I got it.