index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Dan McGee <dan@archlinux.org> | 2008-12-04 20:44:27 -0600 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2008-12-07 22:09:24 -0600 |
commit | 59776ef306935399b2bf1e9cbdd7a7bfa6df1b49 (patch) | |
tree | 5e5528fccafdce236a5686a388d150c84c4ba73e | |
parent | b373b1d16b6235bef2e34a9a21e043418222a813 (diff) |
-rw-r--r-- | scripts/makepkg.sh.in | 4 |
diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in index 4cc255cc..ef2ede1f 100644 --- a/scripts/makepkg.sh.in +++ b/scripts/makepkg.sh.in @@ -675,6 +675,8 @@ run_build() { # ensure all necessary build variables are exported export CFLAGS CXXFLAGS MAKEFLAGS CHOST + # save our shell options so build() can't override what we need + local shellopts=$(shopt -p) local ret=0 if [ "$LOGGING" = "1" ]; then @@ -695,6 +697,8 @@ run_build() { else build 2>&1 || ret=$? fi + # reset our shell options + eval "$shellopts" if [ $ret -gt 0 ]; then error "$(gettext "Build Failed.")" |