diff options
author | Sebastien Fabbro <bicatali@gentoo.org> | 2012-04-17 17:04:23 +0000 |
---|---|---|
committer | Sebastien Fabbro <bicatali@gentoo.org> | 2012-04-17 17:04:23 +0000 |
commit | 29b81b9659a2e3fba4655b1fdaa4767634bc5598 (patch) | |
tree | 42586f5b088a30c0123bdda96eb8133d8368362b /sci-libs/libsvm/files | |
parent | Version bump. (diff) | |
download | gentoo-2-29b81b9659a2e3fba4655b1fdaa4767634bc5598.tar.gz gentoo-2-29b81b9659a2e3fba4655b1fdaa4767634bc5598.tar.bz2 gentoo-2-29b81b9659a2e3fba4655b1fdaa4767634bc5598.zip |
Version bump. makefile patch updated
(Portage version: 2.1.10.49/cvs/Linux x86_64)
Diffstat (limited to 'sci-libs/libsvm/files')
-rw-r--r-- | sci-libs/libsvm/files/3.12-makefile.patch | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/sci-libs/libsvm/files/3.12-makefile.patch b/sci-libs/libsvm/files/3.12-makefile.patch new file mode 100644 index 000000000000..5dbce864b475 --- /dev/null +++ b/sci-libs/libsvm/files/3.12-makefile.patch @@ -0,0 +1,38 @@ +--- Makefile.orig 2012-01-01 15:10:52.000000000 +0000 ++++ Makefile 2012-04-16 17:52:32.000000000 +0100 +@@ -1,9 +1,10 @@ + CXX ?= g++ +-CFLAGS = -Wall -Wconversion -O3 -fPIC ++CXXFLAGS ?= -Wall -Wconversion -O3 + 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 \ +@@ -11,15 +12,15 @@ + else \ + SHARED_LIB_FLAG="-shared -W1,-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 |