Skip to content

Commit

Permalink
Don't use auto CFLAGS/LDFLAGS if they are set but blank (#9)
Browse files Browse the repository at this point in the history
Explicitly blank flags are valid.
  • Loading branch information
chewi authored Apr 30, 2020
1 parent 7dff2ea commit afdd2f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -82,12 +82,12 @@ case "$build" in
esac
AC_SUBST([CONF_BUILD],[$ac_build])

if test -z "$CFLAGS" ; then
if test -z "${CFLAGS+set}" ; then
ac_auto_cflags=yes
else
ac_auto_cflags=no
fi
if test -z "$LDFLAGS" ; then
if test -z "${LDFLAGS+set}" ; then
ac_auto_ldflags=yes
else
ac_auto_ldflags=no
Expand Down

0 comments on commit afdd2f3

Please sign in to comment.