From: Jacek Caban Subject: [PATCH] configure: Allow setting CROSSLDFLAGS by configure. Message-Id: <0b472648-3fb8-6d9e-28fa-52eb4d7db97e@codeweavers.com> Date: Fri, 20 Dec 2019 12:49:41 +0100 Signed-off-by: Jacek Caban --- This may be used to configure Wine to generate .pdb files with llvm-mingw, but I think this is more generally useful (for .pdb files we should make build system be aware of them, but that's a post-code freeze thing). It's already possible to set it via make argument, but not configure. Makefile.in | 1 + configure.ac | 1 + 2 files changed, 2 insertions(+) diff --git a/Makefile.in b/Makefile.in index dfe1c56c06..fb67236b68 100644 --- a/Makefile.in +++ b/Makefile.in @@ -40,6 +40,7 @@ CROSSCC = @CROSSCC@ CFLAGS = @CFLAGS@ CPPFLAGS = @CPPFLAGS@ CROSSCFLAGS = @CROSSCFLAGS@ +CROSSLDFLAGS = @CROSSLDFLAGS@ EXTRACFLAGS = @EXTRACFLAGS@ EXTRACROSSCFLAGS= @EXTRACROSSCFLAGS@ MSVCRTFLAGS = @MSVCRTFLAGS@ diff --git a/configure.ac b/configure.ac index e347738961..88965115d7 100644 --- a/configure.ac +++ b/configure.ac @@ -1032,6 +1032,7 @@ then saved_CFLAGS=$CFLAGS AC_SUBST(CROSSCFLAGS,${CROSSCFLAGS:-"-g -O2"}) AC_SUBST(EXTRACROSSCFLAGS,"-DWINE_CROSS_PE -Wall") + AC_SUBST(CROSSLDFLAGS) CC="$CROSSCC" CFLAGS=$CROSSCFLAGS