eclipse-lisp icon indicating copy to clipboard operation
eclipse-lisp copied to clipboard

c/makefile ARFLAGS don't work on linux

Open vibs29 opened this issue 1 year ago • 0 comments

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:

vibs29 avatar May 10 '24 11:05 vibs29