summaryrefslogtreecommitdiff
path: root/lang/STk/patches/patch-ac
blob: db197bdbf58591ed919e9ed2ee270e1eb6c20f28 (plain)
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
$NetBSD: patch-ac,v 1.3 2003/05/10 00:26:34 jtb Exp $

--- configure.orig
+++ configure
@@ -565,7 +565,11 @@
 # determine the kind of the machine which is running this script
 os=`uname -s`
 version=`uname -r`
-machine=`uname -m`
+#
+# NetBSD:
+# allow sharing between different arch's which use the same processor
+# Ie, use 'm68k' instead of 'amiga', 'mac68k', 'hp300', etc.
+machine=`uname -p`
 
 case $os in
   Linux*) 
@@ -691,7 +695,7 @@
   ULTRIX*)   OS=ULTRIX;;
   HP*)	     OS=HPUX; DFLGS="$DFLGS -Dhpux";;
   Linux*)    OS=LINUX;;
-  NetBSD-1*) OS=NETBSD1;;
+  NetBSD*)   OS=NETBSD;;
   FreeBSD*)  OS=FREEBSD;;
   IRIX-5*)   OS=IRIX5;;
   IRIX*-6*)  OS=IRIX5;;
@@ -1874,7 +1878,7 @@
 
 if test "$x_libraries" != ""
 then
-   XLIBSW="-L$x_libraries"
+   XLIBSW="-L$x_libraries -Wl,-R$x_libraries"
 fi
 
 XLIBSW="$XLIBSW $X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
@@ -2269,11 +2273,12 @@
      SH_LDFLAGS="-shared -o"
      SH_LOADER="ld"
      SH_SUFFIX='so' ;;
-   NETBSD1) 
-     SH_CCFLAGS="-fpic"
-     SH_LDFLAGS="-Bshareable -o"
-     SH_LOADER="ld"
-     SH_SUFFIX='so';;
+   NETBSD) 
+     SH_CCFLAGS="-fPIC"
+     SH_LDFLAGS="-shared -o"
+     SH_LOADER="cc"
+     SH_SUFFIX="so"
+     STKLDFLAGS="-Wl,-E";;
    HPUX)
      SH_CCFLAGS="+Z"
      SH_LDFLAGS="-b -o"