Skip to content

Commit 74d828d

Browse files
committed
don't use ranlib, ar s is equivalent
1 parent e8e6511 commit 74d828d

File tree

4 files changed

+2
-10
lines changed

4 files changed

+2
-10
lines changed

makefile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ s_mp_zero_buf.o s_mp_zero_digs.o
5555

5656
$(LIBNAME): $(OBJECTS)
5757
$(AR) $(ARFLAGS) $@ $(OBJECTS)
58-
$(RANLIB) $@
5958

6059
#make a profiled library (takes a while!!!)
6160
#
@@ -77,7 +76,6 @@ profiled_single: pre_gen
7776
rm -f *.o timing
7877
$(CC) $(LTM_CFLAGS) -fbranch-probabilities -c pre_gen/tommath_amalgam.c -o tommath_amalgam.o
7978
$(AR) $(ARFLAGS) $(LIBNAME) tommath_amalgam.o
80-
$(RANLIB) $(LIBNAME)
8179

8280
install: $(LIBNAME)
8381
install -d $(DESTDIR)$(LIBPATH)

makefile.mingw

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@
1313
PREFIX = c:\mingw
1414
CC = gcc
1515
AR = ar
16-
ARFLAGS = r
17-
RANLIB = ranlib
16+
ARFLAGS = rcs
1817
STRIP = strip
1918
CFLAGS = -O2
2019
LDFLAGS =
@@ -69,7 +68,6 @@ $(OBJECTS): $(HEADERS)
6968
#Create libtommath.a
7069
$(LIBMAIN_S): $(OBJECTS)
7170
$(AR) $(ARFLAGS) $@ $(OBJECTS)
72-
$(RANLIB) $@
7371

7472
#Create DLL + import library libtommath.dll.a
7573
$(LIBMAIN_D) $(LIBMAIN_I): $(OBJECTS)

makefile.unix

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@ LIBPATH = $(PREFIX)/lib
1616
INCPATH = $(PREFIX)/include
1717
CC = cc
1818
AR = ar
19-
ARFLAGS = r
20-
RANLIB = ranlib
19+
ARFLAGS = rcs
2120
CFLAGS = -O2
2221
LDFLAGS =
2322

@@ -72,7 +71,6 @@ $(OBJECTS): $(HEADERS)
7271
#Create libtommath.a
7372
$(LIBMAIN_S): $(OBJECTS)
7473
$(AR) $(ARFLAGS) $@ $(OBJECTS)
75-
$(RANLIB) $@
7674

7775
#Build test_standalone suite
7876
test: demo/shared.o demo/test.o $(LIBMAIN_S)

makefile_include.mk

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ endif # CROSS_COMPILE non-empty
3636

3737
LD=$(CROSS_COMPILE)ld
3838
AR=$(CROSS_COMPILE)ar
39-
RANLIB=$(CROSS_COMPILE)ranlib
4039

4140
ifndef MAKE
4241
# BSDs refer to GNU Make as gmake
@@ -89,7 +88,6 @@ endif
8988
ifdef COMPILE_LTO
9089
LTM_CFLAGS += -flto
9190
AR = $(subst clang,llvm-ar,$(subst gcc,gcc-ar,$(CC)))
92-
RANLIB = $(subst clang,llvm-ranlib,$(subst gcc,gcc-ranlib,$(CC)))
9391
endif
9492

9593
endif # COMPILE_SIZE

0 commit comments

Comments
 (0)