diff options
| author | Thomas Gellekum <tg@FreeBSD.org> | 1997-06-18 12:14:52 +0000 |
|---|---|---|
| committer | Thomas Gellekum <tg@FreeBSD.org> | 1997-06-18 12:14:52 +0000 |
| commit | cad64cdf202ccee70aa99a52da882a3cbdd1ae03 (patch) | |
| tree | cbeb57a06a96d8a6687549bd78e3440f02ce096b /math/scilab/files/patch-ak | |
| parent | Activate LPRng. (diff) | |
Import of Scilab port. Scilab is a matlab-like package.
PR: 3867
Submitted by: Paulo Menezes <paulo@isr.uc.pt>
Diffstat (limited to 'math/scilab/files/patch-ak')
| -rw-r--r-- | math/scilab/files/patch-ak | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/math/scilab/files/patch-ak b/math/scilab/files/patch-ak new file mode 100644 index 000000000000..6572a99dcfc0 --- /dev/null +++ b/math/scilab/files/patch-ak @@ -0,0 +1,60 @@ +diff -c -r /usr/LOCAL/scilab2.3/work/scilab-2.3/routines/sun/link_SYSV.c ./routines/sun/link_SYSV.c +*** /usr/LOCAL/scilab2.3/work/scilab-2.3/routines/sun/link_SYSV.c Mon May 12 16:34:04 1997 +--- ./routines/sun/link_SYSV.c Wed May 21 00:12:20 1997 +*************** +*** 27,42 **** + #include <archives.h> + #endif + +! #ifdef linux + #include <unistd.h> + #include <sys/wait.h> + #endif + + #ifndef linux + #ifndef hppa + #include <sys/mode.h> + #endif + #endif + + #ifdef __alpha + #include <c_asm.h> +--- 27,47 ---- + #include <archives.h> + #endif + +! #if defined(linux) || defined(__FreeBSD__) + #include <unistd.h> + #include <sys/wait.h> + #endif + ++ #ifdef __FreeBSD__ ++ #define RTLD_NOW 1 ++ #endif + #ifndef linux ++ #ifndef __FreeBSD__ + #ifndef hppa + #include <sys/mode.h> + #endif + #endif ++ #endif + + #ifdef __alpha + #include <c_asm.h> +*************** +*** 169,178 **** +--- 174,187 ---- + #ifdef linux + "/usr/bin/ld", "-shared", "-o", 0, 0 + #else ++ #ifdef __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 + #endif |
