← 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?

 

--On Wednesday, December 10, 2014 7:59 AM -0800 grantksupport@xxxxxxxxxxxxx wrote:

building mariadb 10.0.15 on linux/64

i have a non-system instance of (lib)pcre, installed in
/usr/local/test/pcre, that i need to build/link against

reading

 Link MariaDB Client Library for C with specific external zlib and openssl

https://mariadb.com/kb/en/mariadb/client-libraries/client-library-for-c/l
ink-mariadb-client-library-for-c-with-specific-external-zlib-and-openssl/

Hi Grant,

I don't know if this will help, but this is what I had to do to get MariaDB to link to Zimbra's OpenSSL in /opt/zimbra:

       CPPFLAGS="-I/opt/zimbra/openssl-$(OPENSSL_VERSION)/include" \
       /usr/bin/cmake . -DCMAKE_SKIP_BUILD_RPATH=FALSE \
               -DCMAKE_BUILD_WITH_INSTALL_RPATH=FALSE  \

-DCMAKE_INSTALL_RPATH="/opt/zimbra/openssl-$(OPENSSL_VERSION)/lib" \
-DCMAKE_PREFIX_PATH=/opt/zimbra/openssl-$(OPENSSL_VERSION) -DWITH_SSL=yes \

--Quanah

--

Quanah Gibson-Mount
Platform Architect
Zimbra, Inc.
--------------------
Zimbra ::  the leader in open source messaging and collaboration


Follow ups

References