Quotes are not correctly handled in cflags #35
Loading…
Reference in New Issue
There is no content yet.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may exist for a short time before cleaning up, in most cases it CANNOT be undone. Continue?
cat /usr/local/libdata/pkgconfig/xmlsec1-openssl.pc prefix=/usr/local
exec_prefix=${prefix}
libdir=
{exec_prefix}/libincludedir=
{prefix}/includeName: xmlsec1-openssl
Version: 1.2.18
Description: XML Security Library implements XML Signature and XML Encryption standards
Requires: libxml-2.0 >= 2.7.4 libxslt >= 1.0.20
Cflags: -DXMLSEC_CRYPTO="openssl" -D__XMLSEC_FUNCTION__=FUNCTION -DXMLSEC_NO_GOST=1 -DXMLSEC_NO_XKMS=1 -DXMLSEC_DL_LIBLTDL=1, -I${prefix}/include/xmlsec1 -I/usr/include -DXMLSEC_OPENSSL_098=1 -DXMLSEC_CRYPTO_OPENSSL=1
Libs: -L${exec_prefix}/lib -lxmlsec1-openssl -lxmlsec1 -lltdl -L/usr/lib -lcrypto
pkg-config --cflags xmlsec1-openssl
-I/usr/local/include/libxml2 -I/usr/local/include -DXMLSEC_CRYPTO=openssl -D__XMLSEC_FUNCTION__=FUNCTION -DXMLSEC_NO_GOST=1 -DXMLSEC_NO_XKMS=1 -DXMLSEC_DL_LIBLTDL=1, -I/usr/local/include/xmlsec1 -DXMLSEC_OPENSSL_098=1 -DXMLSEC_CRYPTO_OPENSSL=1 Libs: -L/usr/local/lib -lxmlsec1-openssl -lxmlsec1 -lltdl -lcrypto
pkg-config --libs xmlsec1-openssl
-L/usr/local/lib -lxml2 -lxslt -lz -liconv -lm
As you can see from the above output the value: -DXMLSEC_CRYPTO="openssl" is not being escaped/matched correctly, this needs to have the quotes remain in tact so that the compiler gets the flag: -DXMLSEC_CRYPTO="openssl"