From 9cb2a11bb7fb51f0afa6ad357467cf076baf9553 Mon Sep 17 00:00:00 2001 From: Ivan Maidanski Date: Wed, 9 Oct 2024 20:27:30 +0300 Subject: [PATCH] Allow passing custom AR to Makefile.direct Issue #666 (bdwgc). By using "?=" operator we only set the AR variable in case it does not already have a value. * Makefile.direct (AR): Assign value using operator "?=" instead of "=" one. --- Makefile.direct | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile.direct b/Makefile.direct index b52961799..52bffc696 100644 --- a/Makefile.direct +++ b/Makefile.direct @@ -100,7 +100,7 @@ CXXFLAGS?= CXXFLAGS+= -I$(srcdir)/include -I$(AO_SRC_DIR)/src \ $(CFLAGS_DEFAULT_MACROS) $(CFLAGS_FOR_PIC) $(CFLAGS_EXTRA) -AR= ar +AR?= ar RANLIB= ranlib # For EMX, replace "ranlib" with "ar s".