Add /opt/local/{lib,include} to flags for compiler

This commit is contained in:
ViViDboarder 2021-12-08 10:04:39 -08:00
parent 33c3113a5d
commit fbd659b6ee
3 changed files with 10 additions and 0 deletions

View File

@ -19,6 +19,8 @@ export PATH=$PATH:$ANT_HOME/bin
# Opt directory
if [ -d /opt/local ]; then
export PATH=/opt/local/bin:/opt/local/sbin:$PATH
export LDFLAGS="$LDFLAGS-L/opt/local/lib"
export CFLAGS="$CFLAGS-L/opt/local/include"
fi
if [[ "$DET_OS" == "linux" ]]; then

View File

@ -20,6 +20,8 @@ export PATH=$PATH:$ANT_HOME/bin
# Opt directory
if [ -d /opt/local ]; then
export PATH=/opt/local/bin:/opt/local/sbin:$PATH
export LDFLAGS="$LDFLAGS-L/opt/local/lib"
export CFLAGS="$CFLAGS-L/opt/local/include"
fi
if [[ "$DET_OS" == "linux" ]]; then

View File

@ -26,6 +26,12 @@ end
# opt directory
_maybe_set -p PATH /opt/local/sbin
_maybe_set -p PATH /opt/local/bin
if test -e "/opt/local/lib"
set -gx --append LDFLAGS "-L/opt/local/lib"
end
if test -e "/opt/local/include"
set -gx --append CFLAGS "-I/opt/local/include"
end
# Set python paths
if [ $det_os = "mac" ]