add a local prefix
This commit is contained in:
parent
16e4aebace
commit
9a441fd46c
18
10-prefix/profile
Normal file
18
10-prefix/profile
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
function add_prefix {
|
||||||
|
echo "Adding prefix at ${1}"
|
||||||
|
|
||||||
|
## Prefix information
|
||||||
|
export PATH="${1}/bin:${1}/sbin${PATH:+:$PATH}"
|
||||||
|
export LD_LIBRARY_PATH="$1/lib:$1/lib64${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}"
|
||||||
|
|
||||||
|
## GCC information
|
||||||
|
export C_INCLUDE_PATH="$1/include${C_INCLUDE_PATH:+:$C_INCLUDE_PATH}"
|
||||||
|
export CPLUS_INCLUDE_PATH="$1/include${CPLUS_INCLUDE_PATH:+:$CPLUS_INCLUDE_PATH}"
|
||||||
|
export LIBRARY_PATH="$1/lib:$1/lib64${LIBRARY_PATH:+:$LIBRARY_PATH}"
|
||||||
|
|
||||||
|
## export PKG_CONFIG_PATH="$1/lib/pkgconfig:$PKG_CONFIG_PATH"
|
||||||
|
}
|
||||||
|
|
||||||
|
add_prefix "${HOME}/src/prefix/default"
|
Loading…
Reference in New Issue
Block a user