diff --git a/Changes b/Changes index a626dd4cc..25eac6207 100644 --- a/Changes +++ b/Changes @@ -21,6 +21,7 @@ Verilator 4.205 devel * Optimize a lot more model variables into function locals (#3027). [Geza Lore] * Remove deprecated --no-relative-cfuncs option (#3024). [Geza Lore] * Merge const static data globally into a new constant pool (#3013). [Geza Lore] +* Allow configure override of AR program (#2999). [ahouska] * Fix error on unsupported recursive functions (#2957). [Trefor Southwell] diff --git a/configure.ac b/configure.ac index c111cecc1..d20a7c567 100644 --- a/configure.ac +++ b/configure.ac @@ -163,6 +163,11 @@ AC_RUN_IFELSE( AC_MSG_RESULT(no);AC_MSG_ERROR([a working C++ compiler is required]), AC_MSG_RESULT(yes)) +AC_CHECK_PROG(AR,ar,ar) +if test "x$AR" = "x" ; then + AC_MSG_ERROR([Cannot find "ar" in your PATH, please install it]) +fi + AC_PATH_PROG(PERL,perl) if test "x$PERL" = "x" ; then AC_MSG_ERROR([Cannot find "perl" in your PATH, please install it]) diff --git a/include/verilated.mk.in b/include/verilated.mk.in index bc543442b..d11a75745 100644 --- a/include/verilated.mk.in +++ b/include/verilated.mk.in @@ -9,13 +9,12 @@ # SPDX-License-Identifier: LGPL-3.0-only OR Artistic-2.0 ###################################################################### -PERL = @PERL@ -PYTHON3 = @PYTHON3@ +AR = @AR@ CXX = @CXX@ LINK = @CXX@ -AR = ar -RANLIB = ranlib OBJCACHE ?= @OBJCACHE@ +PERL = @PERL@ +PYTHON3 = @PYTHON3@ CFG_WITH_CCWARN = @CFG_WITH_CCWARN@ CFG_WITH_LONGTESTS = @CFG_WITH_LONGTESTS@