Pmodules/libpbuild.bash

- pbuild::set_initial_path() added
This commit is contained in:
2015-10-13 16:41:40 +02:00
parent 508e5f596b
commit ec15f44eb7
+10
View File
@@ -132,6 +132,16 @@ pbuild::cleanup_env() {
unset F90
}
pbuild::set_initial_path() {
PATH='/usr/bin:/bin:/usr/sbin:/sbin'
if [[ "${OS}" == "Darwin" ]]; then
# :FIXME: why do we need this?
[[ -d "/opt/X11/bin" ]] && PATH+=':/opt/X11/bin'
fi
}
pbuild::pre_configure() {
:
}