← Back to team overview

maria-discuss team mailing list archive

Re: mariadb 10 build/link ignores specified linker path to specified lib (pcre). correct method?

 

fyi, adding

+	CPPFLAGS="-I/usr/local/pcre/include" \
+	LDFLAGS="-L/usr/local/pcre/lib64 -Wl,-rpath,/usr/local/pcre/lib64 -lpcre" \
	cmake ..  \
	...
	 -DWITH_PCRE="auto" \
	 -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" \
	 -DCMAKE_C_FLAGS="-I/usr/local/pcre/includes" \
	 -DCMAKE_CXX_FLAGS="-I/usr/local/pcre/includes" \
	 -DCMAKE_SHARED_LINKER_FLAGS="-L/usr/local/pcre/lib64 -Wl,-rpath,/usr/local/pcre/lib64" \
	 -DCMAKE_EXE_LINKER_FLAGS="-L/usr/local/pcre/lib64 -Wl,-rpath,/usr/local/pcre/lib64" \
	...
	make

doesn't make a difference. still,

	ldd sql/mysqld | egrep -i "pcre"
		libpcre.so.1 => /usr/lib64/libpcre.so.1 (0x00007f5153b76000)



References