Merge pull request #270 from Gcenx/master

tools.sh: Workaround hardcoded paths
This commit is contained in:
Thomas Pöchtrager 2021-03-30 18:41:36 +02:00 committed by GitHub
commit fca436a756
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -50,6 +50,14 @@ if [[ $PLATFORM == CYGWIN* ]]; then
exit 1
fi
if [[ $PLATFORM == Darwin ]]; then
echo $PATH
CFLAGS_OPENSSL="$(pkg-config --cflags openssl)"
LDFLAGS_OPENSSL="$(pkg-config --libs-only-L openssl)"
export C_INCLUDE_PATH=${CFLAGS_OPENSSL:2}
export CPLUS_INCLUDE_PATH=${CFLAGS_OPENSSL:2}
export LIBRARY_PATH=${LDFLAGS_OPENSSL:2}
fi
function require()
{