maria-discuss team mailing list archive
-
maria-discuss team
-
Mailing list archive
-
Message #02059
Re: mariadb 10 build/link ignores specified linker path to specified lib (pcre). correct method?
> 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.
References