Skip to content

Commit

Permalink
cflags: fix nonstandard array syntax causing errors on some shells
Browse files Browse the repository at this point in the history
Francesco149 committed Dec 10, 2017

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent b59ed99 commit e4df689
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions cflags
Original file line number Diff line number Diff line change
@@ -21,15 +21,12 @@ else
cc=${cc:-gcc}
fi

(
uname -a
echo $cc
echo $cflags
echo $ldflags
$cc --version
$cc -dumpmachine
) \
> flags.log
uname -a > flags.log
echo $cc >> flags.log
echo $cflags >> flags.log
echo $ldflags >> flags.log
$cc --version >> flags.log
$cc -dumpmachine >> flags.log

export cflags="$cflags"
export ldflags="$ldflags"

0 comments on commit e4df689

Please sign in to comment.