summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sci-libs/libsvm/files/3.12-makefile.patch')
-rw-r--r--sci-libs/libsvm/files/3.12-makefile.patch45
1 files changed, 0 insertions, 45 deletions
diff --git a/sci-libs/libsvm/files/3.12-makefile.patch b/sci-libs/libsvm/files/3.12-makefile.patch
deleted file mode 100644
index 8577029f05c2..000000000000
--- a/sci-libs/libsvm/files/3.12-makefile.patch
+++ /dev/null
@@ -1,45 +0,0 @@
- Makefile | 23 ++++++++++++-----------
- 1 files changed, 12 insertions(+), 11 deletions(-)
-
-diff --git a/Makefile b/Makefile
-index 6b7b123..f7ec65d 100644
---- a/Makefile
-+++ b/Makefile
-@@ -1,25 +1,26 @@
- CXX ?= g++
--CFLAGS = -Wall -Wconversion -O3 -fPIC
-+CXXFLAGS ?= -Wall -Wconversion
- SHVER = 2
- 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 \
-- SHARED_LIB_FLAG="-dynamiclib -W1,-install_name,libsvm.so.$(SHVER)"; \
-+ SHARED_LIB_FLAG="-dynamiclib -Wl,-install_name,libsvm.so.$(SHVER)"; \
- else \
-- SHARED_LIB_FLAG="-shared -W1,-soname,libsvm.so.$(SHVER)"; \
-+ 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); \
-+ 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
-+ $(CXX) $(CXXFLAGS) $(LDFLAGS) 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
-+ $(CXX) $(CXXFLAGS) $(LDFLAGS) svm-train.c svm.o -o svm-train -lm
- svm-scale: svm-scale.c
-- $(CXX) $(CFLAGS) svm-scale.c -o svm-scale
-+ $(CXX) $(CXXFLAGS) $(LDFLAGS) svm-scale.c -o svm-scale
- svm.o: svm.cpp svm.h
-- $(CXX) $(CFLAGS) -c svm.cpp
-+ $(CXX) $(CXXFLAGS) $(PICFLAGS) -c svm.cpp
- 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