Skip to content

Commit

Permalink
Allow passing custom AR to Makefile.direct
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
ivmai committed Oct 9, 2024
1 parent 6ec9f46 commit 9cb2a11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile.direct
Original file line number Diff line number Diff line change
Expand Up @@ -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".
Expand Down

0 comments on commit 9cb2a11

Please sign in to comment.