1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-31 21:57:12 +00:00
freebsd-ports/math/Scilab/files/patch-ag
Steve Price dca1739cb8 Update to version 2.4.1.
PR:		14877
Submitted by:	Pedro F. Giffuni <pfgiffun@bachue.usc.unal.edu.co>
1999-11-27 01:38:31 +00:00

48 lines
973 B
Plaintext

--- routines/sun/link_SYSV.c.orig Tue Oct 13 08:27:18 1998
+++ routines/sun/link_SYSV.c Sat Dec 19 23:54:03 1998
@@ -34,5 +34,5 @@
#endif
-#ifdef linux
+#if defined(linux) || defined(netbsd) || defined(freebsd)
#include <unistd.h>
#include <sys/wait.h>
@@ -41,4 +41,5 @@
#ifndef linux
#ifndef hppa
+#if (!defined(netbsd) && !defined(freebsd))
#if (defined(sun) && ! defined(SYSV))
#else
@@ -47,6 +48,7 @@
#endif
#endif
+#endif
-#ifndef linux
+#if !defined(linux) && !defined(netbsd)
#ifdef __alpha
#include <c_asm.h>
@@ -59,7 +61,9 @@
#endif
+#if !defined(netbsd)
#if defined __alpha || defined sgi
#include <a.out.h>
#endif
+#endif
#include <string.h>
@@ -264,8 +268,12 @@
"/usr/bin/ld", "-shared", "-o", 0, 0
#else
+#if defined(netbsd) || defined(freebsd)
+ "/usr/bin/ld", "-Bshareable", "-o", 0, 0
+#else
#ifdef hppa
"/bin/ld", "-b", "-o", 0, 0
#else
"/bin/ld", "-shared", "-o", 0, 0
+#endif
#endif
#endif