summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sci-libs/libsvm/files/2.90-fpic.patch')
-rw-r--r--sci-libs/libsvm/files/2.90-fpic.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/sci-libs/libsvm/files/2.90-fpic.patch b/sci-libs/libsvm/files/2.90-fpic.patch
new file mode 100644
index 000000000000..c0ead5243262
--- /dev/null
+++ b/sci-libs/libsvm/files/2.90-fpic.patch
@@ -0,0 +1,26 @@
+diff --git a/python/Makefile b/python/Makefile
+index 32268e7..dbc128f 100644
+--- a/python/Makefile
++++ b/python/Makefile
+@@ -11,8 +11,8 @@ LDFLAGS = -shared
+
+ all: svmc.so
+
+-svmc.so: svmc_wrap.o ../svm.o
+- $(CXX) $(LDFLAGS) -o svmc.so svmc_wrap.o ../svm.o
++svmc.so: svmc_wrap.o svm.o
++ $(CXX) $(LDFLAGS) -o svmc.so svmc_wrap.o svm.o
+
+ svmc_wrap.o: svmc_wrap.c ../svm.h
+ $(CXX) $(CFLAGS) -fPIC -c svmc_wrap.c
+@@ -20,8 +20,8 @@ svmc_wrap.o: svmc_wrap.c ../svm.h
+ svmc_wrap.c: svmc.i
+ $(SWIG) -python -noproxy svmc.i
+
+-../svm.o: ../svm.cpp ../svm.h
+- cd ..; $(CXX) $(CFLAGS) -fPIC -c svm.cpp
++svm.o: ../svm.cpp ../svm.h
++ $(CXX) $(CFLAGS) -fPIC -c ../svm.cpp -o svm.o
+
+ clean:
+ rm -f *~ *.o *.so *.pyc *.pyo