mirror of
https://github.com/ViViDboarder/shoestrap.git
synced 2024-12-22 12:27:41 +00:00
Add /opt/local/{lib,include} to flags for compiler
This commit is contained in:
parent
33c3113a5d
commit
fbd659b6ee
@ -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
|
||||
|
@ -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
|
||||
|
@ -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" ]
|
||||
|
Loading…
Reference in New Issue
Block a user