From ed7cdb671003cd36f83863931e46895baeaf06c9 Mon Sep 17 00:00:00 2001 From: Ivan Maidanski Date: Fri, 18 Oct 2024 07:11:43 +0300 Subject: [PATCH] Allow passing custom RANLIB to Makefile.direct Issue #666 (bdwgc). By using "?=" operator we only set the RANLIB variable in case it does not already have a value. * Makefile.direct (RANLIB): Assign value using operator "?=" instead of "=" one; place comment before the definition; mention Cosmo in comment. --- Makefile.direct | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile.direct b/Makefile.direct index a91252928..8f8bcc7fb 100644 --- a/Makefile.direct +++ b/Makefile.direct @@ -102,8 +102,8 @@ CXXFLAGS+= -I$(srcdir)/include -I$(AO_SRC_DIR)/src \ AR?= ar -RANLIB= ranlib -# For EMX, replace "ranlib" with "ar s". +# Note: for Cosmo and EMX, specify "$(AR) s" instead of "ranlib". +RANLIB?= ranlib # All .o files of libgc.a except for dyn_load.o. OBJS= allchblk.o alloc.o backgraph.o blacklst.o checksums.o \