summaryrefslogtreecommitdiff
path: root/editors/emacs20/patches/patch-bf
blob: 4a1c1182528c885e06f73cb70e85943017d1bf59 (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
$NetBSD: patch-bf,v 1.1.1.1 2003/04/11 00:31:45 uebayasi Exp $

--- src/s/netbsd.h.orig	Sat Apr 11 20:15:19 1998
+++ src/s/netbsd.h	Sat Jan 22 20:22:29 2000
@@ -57,7 +57,7 @@
 #define N_BSSADDR(x) (N_ALIGN(x, N_DATADDR(x)+x.a_data))
 #define N_TRELOFF(x) N_RELOFF(x)
 #endif
-#endif /* not NO_SHARED_LIBS */
+#endif /* not NO_SHARED_LIBS and not ELF */
 
 #define HAVE_WAIT_HEADER
 #define WAIT_USE_INT
@@ -66,11 +66,15 @@
 
 #define AMPERSAND_FULL_NAME
 
-#ifdef __ELF__
 /* Here is how to find X Windows.  LD_SWITCH_X_SITE_AUX gives an -R option
    says where to find X windows at run time.  We convert it to a -rpath option
    which is what OSF1 uses.  */
 #define LD_SWITCH_SYSTEM `echo LD_SWITCH_X_SITE_AUX | sed -e 's/-R/-Wl,-rpath,/'`
+
+#ifdef __ELF__
+#define HAVE_TEXT_START		/* No need to define `start_of_text'.  */
+#define UNEXEC unexelf.o
+#define ORDINARY_LINK
 #endif /* __ELF__ */
 
 /* On post 1.3 releases of NetBSD, gcc -nostdlib also clears