Skip to content

Commit

Permalink
configure: Convince autotools to work with MSVC's archiver lib.exe
Browse files Browse the repository at this point in the history
  • Loading branch information
real-or-random committed Jun 29, 2022
1 parent bd81f41 commit 2be6ba0
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,19 @@ AM_INIT_AUTOMAKE([1.11.2 foreign subdir-objects])
# Make the compilation flags quiet unless V=1 is used.
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])

PKG_PROG_PKG_CONFIG

AC_PROG_CC
AM_PROG_AS
AM_PROG_AR

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

PKG_PROG_PKG_CONFIG

build_windows=no

case $host_os in
Expand Down

0 comments on commit 2be6ba0

Please sign in to comment.