summaryrefslogtreecommitdiff
path: root/devel/bcc/patches/patch-an
blob: 498c6c931bd1ce463837f3415e9426ef2d46744d (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
$NetBSD: patch-an,v 1.3 2006/10/10 06:56:05 uebayasi Exp $

--- bcc/bcc.c.orig	1993-07-17 14:49:49.000000000 +0200
+++ bcc/bcc.c
@@ -27,20 +27,20 @@
 #define P(x)	()
 #endif
 
-#define AS	"as"
+#define AS	"as86"
 #define BAS86
 #define BCC86
-#define CC1	"cc1"
+#define CC1	"bcc-cc1"
 #define CC1_MINUS_O_BROKEN	FALSE
-#define CPP	"cpp"		/* normally a link to /usr/bin/bcc-cc1 */
+#define CPP	"bcc-cc1"	/* normally a link to /usr/bin/bcc-cc1 */
 #define CPPFLAGS	"-E"
 #define CRT0	"crt0.o"
 #define GCC	"gcc"
-#define LD	"ld"
-#define STANDARD_CRT0_0_PREFIX	"/usr/local/lib/i86/"
-#define STANDARD_CRT0_3_PREFIX	"/usr/local/lib/i386/"
-#define STANDARD_EXEC_PREFIX	"/usr/local/libexec/i386/bcc/"
-#define STANDARD_EXEC_PREFIX_2	"/usr/bin/"
+#define LD	"ld86"
+#define STANDARD_CRT0_0_PREFIX	LOCALPREFIX "/lib/bcc/i86/"
+#define STANDARD_CRT0_3_PREFIX	LOCALPREFIX "/lib/bcc/i386/"
+#define STANDARD_EXEC_PREFIX	LOCALPREFIX "/lib/bcc/"
+#define STANDARD_EXEC_PREFIX_2	LOCALPREFIX "/bin/"
 
 #ifdef CCC
 #undef BCC86
@@ -553,7 +553,7 @@ char **argv;
 	    {
 		arg = ldargs.argv[argc];
 		if (arg[0] == '-' && arg[1] == 'i'
-		    && (arg[2] == 0 || arg[2] == '-' && arg[3] == 0))
+		    && (arg[2] == 0 || (arg[2] == '-' && arg[3] == 0)))
 		{
 		    --ldargs.argc;
 		    memmove(ldargs.argv + argc, ldargs.argv + argc + 1,