summaryrefslogtreecommitdiff
path: root/security/gnupg/patches/patch-ab
blob: 6757bf84f2fa95210b86f89c51f8aece82c5dc0a (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
$NetBSD: patch-ab,v 1.3 1999/04/09 09:39:20 agc Exp $

Make this work on NetBSD.
For Solaris, make the DATADIRNAME share.

--- configure.orig	Sat Mar 20 09:34:01 1999
+++ configure	Fri Apr  9 10:28:33 1999
@@ -1596,6 +1596,13 @@
   ;;
 esac
 
+case "$target" in
+i[3456]86*-*-netbsd* | pentium-*-netbsd* | pentiumpro-*-netbsd*)
+  ac_sympat='_\([_A-Za-z][_A-Za-z0-9]*\)'
+  ac_symxfrm='_\1 \1'
+  ;;
+esac
+
 # If we're using GNU nm, then use its standard symbol codes.
 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
   ac_symcode='[ABCDGISTUW]'
@@ -1840,7 +1847,7 @@
             CFLAGS_RDYNAMIC="-Wl,-dy"
             ;;
 
-          freebsd2* | osf4* )
+          freebsd2* | osf4* | netbsd*)
             CFLAGS_RDYNAMIC=""
             ;;
           * )
@@ -1880,6 +1887,9 @@
         NAME_OF_DEV_URANDOM="/dev/urandom"
         DYNLINK_MOD_CFLAGS="-shared -rdynamic -fpic -Wl,-Bshareable -Wl,-x"
         ;;
+    *-netbsd*)
+        DYNLINK_MOD_CFLAGS="-shared -rdynamic -fpic -Wl,-Bshareable -Wl,-x"
+        ;;
     *)
         NAME_OF_DEV_RANDOM="/dev/random"
         NAME_OF_DEV_URANDOM="/dev/urandom"
@@ -3248,7 +3258,7 @@
   cat conftest.$ac_ext >&5
   rm -rf conftest*
   CATOBJEXT=.mo
-		   DATADIRNAME=lib
+		   DATADIRNAME=share
 fi
 rm -f conftest*
 		INSTOBJEXT=.mo