don't use ranlib, ar s
is equivalent
This commit is contained in:
parent
e8e65119d1
commit
74d828d526
2
makefile
2
makefile
@ -55,7 +55,6 @@ s_mp_zero_buf.o s_mp_zero_digs.o
|
||||
|
||||
$(LIBNAME): $(OBJECTS)
|
||||
$(AR) $(ARFLAGS) $@ $(OBJECTS)
|
||||
$(RANLIB) $@
|
||||
|
||||
#make a profiled library (takes a while!!!)
|
||||
#
|
||||
@ -77,7 +76,6 @@ profiled_single: pre_gen
|
||||
rm -f *.o timing
|
||||
$(CC) $(LTM_CFLAGS) -fbranch-probabilities -c pre_gen/tommath_amalgam.c -o tommath_amalgam.o
|
||||
$(AR) $(ARFLAGS) $(LIBNAME) tommath_amalgam.o
|
||||
$(RANLIB) $(LIBNAME)
|
||||
|
||||
install: $(LIBNAME)
|
||||
install -d $(DESTDIR)$(LIBPATH)
|
||||
|
@ -13,8 +13,7 @@
|
||||
PREFIX = c:\mingw
|
||||
CC = gcc
|
||||
AR = ar
|
||||
ARFLAGS = r
|
||||
RANLIB = ranlib
|
||||
ARFLAGS = rcs
|
||||
STRIP = strip
|
||||
CFLAGS = -O2
|
||||
LDFLAGS =
|
||||
@ -69,7 +68,6 @@ $(OBJECTS): $(HEADERS)
|
||||
#Create libtommath.a
|
||||
$(LIBMAIN_S): $(OBJECTS)
|
||||
$(AR) $(ARFLAGS) $@ $(OBJECTS)
|
||||
$(RANLIB) $@
|
||||
|
||||
#Create DLL + import library libtommath.dll.a
|
||||
$(LIBMAIN_D) $(LIBMAIN_I): $(OBJECTS)
|
||||
|
@ -16,8 +16,7 @@ LIBPATH = $(PREFIX)/lib
|
||||
INCPATH = $(PREFIX)/include
|
||||
CC = cc
|
||||
AR = ar
|
||||
ARFLAGS = r
|
||||
RANLIB = ranlib
|
||||
ARFLAGS = rcs
|
||||
CFLAGS = -O2
|
||||
LDFLAGS =
|
||||
|
||||
@ -72,7 +71,6 @@ $(OBJECTS): $(HEADERS)
|
||||
#Create libtommath.a
|
||||
$(LIBMAIN_S): $(OBJECTS)
|
||||
$(AR) $(ARFLAGS) $@ $(OBJECTS)
|
||||
$(RANLIB) $@
|
||||
|
||||
#Build test_standalone suite
|
||||
test: demo/shared.o demo/test.o $(LIBMAIN_S)
|
||||
|
@ -36,7 +36,6 @@ endif # CROSS_COMPILE non-empty
|
||||
|
||||
LD=$(CROSS_COMPILE)ld
|
||||
AR=$(CROSS_COMPILE)ar
|
||||
RANLIB=$(CROSS_COMPILE)ranlib
|
||||
|
||||
ifndef MAKE
|
||||
# BSDs refer to GNU Make as gmake
|
||||
@ -89,7 +88,6 @@ endif
|
||||
ifdef COMPILE_LTO
|
||||
LTM_CFLAGS += -flto
|
||||
AR = $(subst clang,llvm-ar,$(subst gcc,gcc-ar,$(CC)))
|
||||
RANLIB = $(subst clang,llvm-ranlib,$(subst gcc,gcc-ranlib,$(CC)))
|
||||
endif
|
||||
|
||||
endif # COMPILE_SIZE
|
||||
|
Loading…
Reference in New Issue
Block a user