eclipse-lisp
eclipse-lisp copied to clipboard
c/makefile ARFLAGS don't work on linux
The .a files would fail to get created unless I changed the ar flags from rvl to rcs like this:
diff --git a/c/makefile b/c/makefile
index 7f44cc7..46ce6ad 100644
--- a/c/makefile
+++ b/c/makefile
@@ -59,7 +59,7 @@ BINDIR=$(INSTALLDIR)/bin
# Missing on HP
COMPILE.c = $(CC) $(CFLAGS) $(CPPFLAGS) -c
AR = ar
-ARFLAGS = rv
+ARFLAGS = rcs
RM = rm -f
# Missing on Motorola
@@ -126,11 +126,11 @@ eclipse: $(l).a $(l)d.a eclipse.o $(user-objects)
# See bottom of file for alternatives that don't keep .o files lying around.
$(l).a: $(objects) $(static-objects)
- $(AR) $(ARFLAGS)l $@ $?
+ $(AR) $(ARFLAGS) $@ $?
ranlib $@
$(l)d.a: $(dobjects) initd.o
- $(AR) $(ARFLAGS)l $@ $?
+ $(AR) $(ARFLAGS) $@ $?
ranlib $@
libgc.a: