summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sci-mathematics/scilab/files/scilab-4.1-java-pic.patch')
-rw-r--r--sci-mathematics/scilab/files/scilab-4.1-java-pic.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/sci-mathematics/scilab/files/scilab-4.1-java-pic.patch b/sci-mathematics/scilab/files/scilab-4.1-java-pic.patch
new file mode 100644
index 000000000000..411c29c06be4
--- /dev/null
+++ b/sci-mathematics/scilab/files/scilab-4.1-java-pic.patch
@@ -0,0 +1,30 @@
+diff -Naur scilab-4.1.old/routines/Javasci/Makefile.in scilab-4.1/routines/Javasci/Makefile.in
+--- scilab-4.1.old/routines/Javasci/Makefile.in 2006-07-19 05:08:44.000000000 -0400
++++ scilab-4.1/routines/Javasci/Makefile.in 2007-03-11 14:09:00.000000000 -0400
+@@ -13,7 +13,7 @@
+ OBJSC= javasci_SciStringArray.o javasci_globals.o javasci_Scilab.o javasci_Scilab2.o javasci_SciDoubleArray.o javasci_SciComplexArray.o @GCCFIX@
+ OBJSF =
+ OBJS = $(OBJSC)
+-CFLAGS = $(CC_OPTIONS) $(JAVAINC)
++CFLAGS = $(CC_OPTIONS) -fPIC $(JAVAINC)
+ FLIBS=@FLIBS@
+
+ include ../../Makefile.incl
+diff -Naur scilab-4.1.old/routines/Javasci/Makefile.linux scilab-4.1/routines/Javasci/Makefile.linux
+--- scilab-4.1.old/routines/Javasci/Makefile.linux 2005-05-23 07:22:17.000000000 -0400
++++ scilab-4.1/routines/Javasci/Makefile.linux 2007-03-11 14:09:17.000000000 -0400
+@@ -4,4 +4,4 @@
+ @echo Creation of $(LIBRARY)
+ @$(RM) $@;
+ @echo "linking";
+- @$(FC) -Wl,-shared -g -o $@ $(OBJS) $(DEFAULTS) $(LIBR) $(TCLTK_LIBS) $(XLIBS) $(TERMCAPLIB);
++ $(CC) -shared -o $@ $(OBJS) $(TCLTK_LIBS) $(XLIBS) $(TERMCAPLIB);
+diff -Naur scilab-4.1.old/routines/Javasci/Makefile.linux64 scilab-4.1/routines/Javasci/Makefile.linux64
+--- scilab-4.1.old/routines/Javasci/Makefile.linux64 2006-06-13 10:14:49.000000000 -0400
++++ scilab-4.1/routines/Javasci/Makefile.linux64 2007-03-11 14:09:51.000000000 -0400
+@@ -4,4 +4,4 @@
+ @echo Creation of $(LIBRARY)
+ @$(RM) $@;
+ @echo "linking";
+- @$(FC) -shared -g -o $@ $(OBJS) $(DEFAULTS) $(LIBR) $(TCLTK_LIBS) $(XLIBS) $(TERMCAPLIB);
++ $(CC) -shared -o $@ $(OBJS) $(TCLTK_LIBS) $(XLIBS) $(TERMCAPLIB);