[libsnark] Use POSIX-compliant ar arguments
This commit is contained in:
parent
daad2c2736
commit
d3096198c8
|
@ -198,13 +198,8 @@ $(LIBGTEST_A): $(GTESTDIR)/src/gtest-all.cc $(DEPINST_EXISTS)
|
||||||
|
|
||||||
# libsnark.a will contains all of our relevant object files, and we also mash in the .a files of relevant dependencies built by ./prepare-depends.sh
|
# libsnark.a will contains all of our relevant object files, and we also mash in the .a files of relevant dependencies built by ./prepare-depends.sh
|
||||||
$(LIBSNARK_A): $(LIB_OBJS) $(AR_LIBS)
|
$(LIBSNARK_A): $(LIB_OBJS) $(AR_LIBS)
|
||||||
( \
|
$(AR) q $(LIBSNARK_A) $(LIB_OBJS)
|
||||||
echo "create $(LIBSNARK_A)"; \
|
if [ -n "$(AR_LIBS)" ]; then mkdir -p tmp-ar; cd tmp-ar; for AR_LIB in $(AR_LIBS); do $(AR) x $$AR_LIB; done; $(AR) qc $(LIBSNARK_A) tmp-ar/*; cd ..; rm -r tmp-ar; fi;
|
||||||
echo "addmod $(LIB_OBJS)"; \
|
|
||||||
if [ -n "$(AR_LIBS)" ]; then for AR_LIB in $(AR_LIBS); do echo addlib $$AR_LIB; done; fi; \
|
|
||||||
echo "save"; \
|
|
||||||
echo "end"; \
|
|
||||||
) | $(AR) -M
|
|
||||||
$(AR) s $(LIBSNARK_A)
|
$(AR) s $(LIBSNARK_A)
|
||||||
|
|
||||||
libsnark.so: $(LIBSNARK_A) $(DEPINST_EXISTS)
|
libsnark.so: $(LIBSNARK_A) $(DEPINST_EXISTS)
|
||||||
|
|
Loading…
Reference in New Issue