diff options
Diffstat (limited to 'scripts/include/common.sh')
-rw-r--r-- | scripts/include/common.sh | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/scripts/include/common.sh b/scripts/include/common.sh index 3df470a..d57879b 100644 --- a/scripts/include/common.sh +++ b/scripts/include/common.sh @@ -93,6 +93,11 @@ function env_ldflags_path { check_error $? } +function env_cppflags_path { + echo "export CPPFLAGS=${bindir}/$1 \$CPPFLAGS" >>"${envfile}" + check_error $? +} + function env_pkg_config_path { echo "export PKG_CONFIG_PATH=${bindir}/$1:\$PKG_CONFIG_PATH" >>"${envfile}" check_error $? @@ -261,7 +266,7 @@ function repack_flags { packedpaths="" for var in $1 do - packedpaths="${3}${packedpaths}${bindir}/$var " + packedpaths="${packedpaths}${3}${bindir}/$var " done unset IFS echo "export $2=\"${packedpaths}\$$2\"" >>"${envfile}" @@ -276,6 +281,7 @@ function package_use { repack_paths "$ENV_MANPATH" "MANPATH" repack_paths "$ENV_ACLOCAL_PATH" "ACLOCAL_PATH" repack_flags "$ENV_LDFLAGS_PATH" "LDFLAGS" "-L" + repack_flags "$ENV_CPPFLAGS_PATH" "CPPFLAGS" "-I" } function common_use_package { |