configure: Fix restoring CFLAGS after the test for -Wl,-z,defs.
commit2c7524021ec862eba304c788274d6b49b7c1aca9
authorMartin Storsjö <martin@martin.st>
Wed, 4 Oct 2023 12:03:21 +0000 (4 15:03 +0300)
committerAlexandre Julliard <julliard@winehq.org>
Wed, 4 Oct 2023 16:15:52 +0000 (4 18:15 +0200)
tree6e93ac5e26466bbbe6a414383ad4554d10ede689
parent16217163d9ef575c7dab9498cba63a2351fdc09e
configure: Fix restoring CFLAGS after the test for -Wl,-z,defs.

This fixes a regression from 450c358881dbc6dcfb2692b8f4debb7db8fdc54b;
after testing for -Wl,-z,defs, CFLAGS was restored from an
incorrect variable, leaving CFLAGS essentially empty.

This would break builds for e.g. arm with Clang, where -mthumb would
be essential for being able to build some inline assembly snippets
correctly.

This also had the effect of dropping the default "-g -O2" arguments
from CFLAGS.

Signed-off-by: Martin Storsjö <martin@martin.st>
configure
configure.ac