Skip to content

Commit 2be6ba0

Browse files
configure: Convince autotools to work with MSVC's archiver lib.exe
1 parent bd81f41 commit 2be6ba0

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

configure.ac

+7-2
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,19 @@ AM_INIT_AUTOMAKE([1.11.2 foreign subdir-objects])
3232
# Make the compilation flags quiet unless V=1 is used.
3333
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
3434

35-
PKG_PROG_PKG_CONFIG
36-
3735
AC_PROG_CC
3836
AM_PROG_AS
3937
AM_PROG_AR
4038

39+
# Clear some cache variables as a workaround for a bug that appears due to a bad
40+
# interaction between AM_PROG_AR and LT_INIT when combining MSVC's archiver lib.exe.
41+
# https://debbugs.gnu.org/cgi/bugreport.cgi?bug=54421
42+
AS_UNSET(ac_cv_prog_AR)
43+
AS_UNSET(ac_cv_prog_ac_ct_AR)
4144
LT_INIT([win32-dll])
4245

46+
PKG_PROG_PKG_CONFIG
47+
4348
build_windows=no
4449

4550
case $host_os in

0 commit comments

Comments
 (0)