2
1

0002-build-static-lib.patch 809 B

1234567891011121314151617181920
  1. Makefile: add a rule to build a static library
  2. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
  3. [Fabrice: update for 2.43]
  4. Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
  5. diff -durN liblinear-1.96.orig/Makefile liblinear-1.96/Makefile
  6. --- liblinear-1.96.orig/Makefile 2014-11-15 07:50:23.000000000 +0100
  7. +++ liblinear-1.96/Makefile 2014-12-14 00:23:00.135893956 +0100
  8. @@ -16,6 +16,11 @@
  9. fi; \
  10. $(CXX) $${SHARED_LIB_FLAG} linear.o newton.o blas/blas.a -o liblinear.so.$(SHVER)
  11. +# Keeping blas/blas.a as a pre-requisite, to ensure all .o files are built
  12. +static-lib: linear.o newton.o blas/blas.a
  13. + $(AR) rcv liblinear.a linear.o newton.o blas/*.o
  14. + $(RANLIB) liblinear.a
  15. +
  16. train: newton.o linear.o train.c blas/blas.a
  17. $(CXX) $(CFLAGS) -o train train.c newton.o linear.o $(LIBS)