[zsh] remove CPPFLAGS and LDFLAGS

This commit is contained in:
Dmytro Meleshko 2019-11-30 11:56:42 +02:00
parent 6a4b9beaca
commit 2b797d1541

View file

@ -1,13 +1,11 @@
#!/usr/bin/env zsh #!/usr/bin/env zsh
# tie these env variables to zsh arrays # tie these env variables to zsh arrays
typeset -T LDFLAGS ldflags ' '
typeset -T CPPFLAGS cppflags ' '
typeset -T PKG_CONFIG_PATH pkg_config_path ':' typeset -T PKG_CONFIG_PATH pkg_config_path ':'
# keep only unique values in these arrays # keep only unique values in these arrays
typeset -U path fpath manpath ldflags cppflags pkg_config_path typeset -U path fpath manpath pkg_config_path
export -U PATH FPATH MANPATH LDFLAGS CPPFLAGS PKG_CONFIG_PATH export -U PATH FPATH MANPATH PKG_CONFIG_PATH
path_append() { path_append() {
local arr_name="$1" value="$2" local arr_name="$1" value="$2"
@ -47,8 +45,6 @@ if is_macos; then
for formula in ruby openssl curl; do for formula in ruby openssl curl; do
formula_path="/usr/local/opt/$formula" formula_path="/usr/local/opt/$formula"
if [[ -d "$formula_path" ]]; then if [[ -d "$formula_path" ]]; then
ldflags+=( -L"$formula_path"/lib )
cppflags+=( -L"$formula_path"/include )
pkg_config_path+=( "$formula_path"/lib/pkgconfig ) pkg_config_path+=( "$formula_path"/lib/pkgconfig )
fi fi
done done