Skip to content

Commit

Permalink
Allow passing custom RANLIB to Makefile.direct
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
ivmai committed Oct 18, 2024
1 parent 390718b commit ed7cdb6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile.direct
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down

0 comments on commit ed7cdb6

Please sign in to comment.