diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-02-24 09:47:15 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-02-24 09:47:15 +0000 |
commit | 4003c614d3c4b320c45ab1f4b817459d4709443b (patch) | |
tree | fcc0c42e92c56abe0ea39b717b2c3b019c335e41 /sci-libs/libsvm/files | |
parent | 58177544118b9a8393d7501ee5e0e35cd32f2ad4 (diff) |
gentoo auto-resync : 24:02:2023 - 09:47:15
Diffstat (limited to 'sci-libs/libsvm/files')
-rw-r--r-- | sci-libs/libsvm/files/libsvm-3.30-makefile.patch | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/sci-libs/libsvm/files/libsvm-3.30-makefile.patch b/sci-libs/libsvm/files/libsvm-3.30-makefile.patch new file mode 100644 index 000000000000..6f8266d5cb02 --- /dev/null +++ b/sci-libs/libsvm/files/libsvm-3.30-makefile.patch @@ -0,0 +1,44 @@ +diff --git a/Makefile b/Makefile +index 76fd929..a454f56 100644 +--- a/Makefile ++++ b/Makefile +@@ -1,9 +1,10 @@ +-CXX ?= g++ +-CFLAGS = -Wall -Wconversion -O3 -fPIC ++CFLAGS ?= -Wall -Wconversion ++CXXFLAGS ?= $(CFLAGS) + SHVER = 3 + OS = $(shell uname) ++PICFLAGS ?= -fPIC + +-all: svm-train svm-predict svm-scale ++all: svm-train svm-predict svm-scale lib + + lib: svm.o + if [ "$(OS)" = "Darwin" ]; then \ +@@ -11,15 +12,16 @@ lib: svm.o + else \ + SHARED_LIB_FLAG="-shared -Wl,-soname,libsvm.so.$(SHVER)"; \ + fi; \ +- $(CXX) $${SHARED_LIB_FLAG} svm.o -o libsvm.so.$(SHVER) ++ $(CXX) $(LDFLAGS) $${SHARED_LIB_FLAG} svm.o -o libsvm.so.$(SHVER) $(OPENMP_LIBS) ; \ ++ ln -s libsvm.so.$(SHVER) libsvm.so + +-svm-predict: svm-predict.c svm.o +- $(CXX) $(CFLAGS) svm-predict.c svm.o -o svm-predict -lm +-svm-train: svm-train.c svm.o +- $(CXX) $(CFLAGS) svm-train.c svm.o -o svm-train -lm +-svm-scale: svm-scale.c +- $(CXX) $(CFLAGS) svm-scale.c -o svm-scale ++svm-predict: svm-predict.o lib ++ $(CXX) $(LDFLAGS) $< -o $@ $(LIBS) -L. -lsvm -lm ++svm-train: svm-train.o lib ++ $(CXX) $(LDFLAGS) $< -o $@ $(LIBS) -L. -lsvm -lm ++svm-scale: svm-scale.o ++ $(CXX) $(LDFLAGS) $< -o $@ $(LIBS) + svm.o: svm.cpp svm.h +- $(CXX) $(CFLAGS) -c svm.cpp ++ $(CXX) $(CXXFLAGS) $(CPPFLAGS) $(PICFLAGS) $(OPENMP_CFLAGS) -c svm.cpp -o $@ + clean: +- rm -f *~ svm.o svm-train svm-predict svm-scale libsvm.so.$(SHVER) ++ rm -f *~ svm.o svm-train svm-predict svm-scale libsvm.so.$(SHVER) libsvm.so |