* [gentoo-commits] gentoo-x86 commit in sci-libs/libsvm/files: 3.0-makefile.patch
@ 2010-12-02 19:46 Sebastien Fabbro (bicatali)
0 siblings, 0 replies; only message in thread
From: Sebastien Fabbro (bicatali) @ 2010-12-02 19:46 UTC (permalink / raw
To: gentoo-commits
bicatali 10/12/02 19:46:13
Added: 3.0-makefile.patch
Log:
Version bump
(Portage version: 2.1.9.25/cvs/Linux x86_64)
Revision Changes Path
1.1 sci-libs/libsvm/files/3.0-makefile.patch
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/libsvm/files/3.0-makefile.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/libsvm/files/3.0-makefile.patch?rev=1.1&content-type=text/plain
Index: 3.0-makefile.patch
===================================================================
--- Makefile.orig 2010-12-02 19:44:31.000000000 +0000
+++ Makefile 2010-12-02 19:43:59.000000000 +0000
@@ -1,19 +1,21 @@
CXX ?= g++
-CFLAGS = -Wall -Wconversion -O3 -fPIC
+CFLAGS ?= -Wall -Wconversion -O3
SHVER = 2
+PICFLAGS ?= -fPIC
-all: svm-train svm-predict svm-scale
+all: svm-train svm-predict svm-scale lib
lib: svm.o
- $(CXX) -shared -dynamiclib svm.o -o libsvm.so.$(SHVER)
+ $(CXX) $(LDFLAGS) -shared -Wl,-soname,libsvm.so.$(SHVER) svm.o -o libsvm.so.$(SHVER) -lm && \
+ 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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2010-12-02 19:46 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-02 19:46 [gentoo-commits] gentoo-x86 commit in sci-libs/libsvm/files: 3.0-makefile.patch Sebastien Fabbro (bicatali)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox