10 Dec
2014
10 Dec
'14
10:15 p.m.
I'll try a variant of your approach above ...
CPPFLAGS="-I/usr/local/pcre/include" \ cmake .. \ ... -G "Unix Makefiles" \ -DBUILD_SHARED_LIBS=1 \ -DCMAKE_SKIP_BUILD_RPATH=0 \ -DCMAKE_BUILD_WITH_INSTALL_RPATH=0 \ -DCMAKE_INSTALL_RPATH_USE_LINK_PATH=1 \ -DCMAKE_INSTALL_RPATH="/usr/local/pcre/lib64" \ ... make still results in ldd sql/mysqld | grep -i "pcre" libpcre.so.1 => /usr/lib64/libpcre.so.1 (0x00007f034bb38000) prefixing with LDFLAGS="-L/usr/local/pcre/lib64 -Wl,-rpath,/usr/local/pcre/lib64 -lpcre" \ for good measure also makes not difference; the system libs are incorrectly linked.