summaryrefslogtreecommitdiff
path: root/math/scilab/files/patch-ak
blob: 6572a99dcfc0d97ff6a637fbb1fdac10ad958286 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
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