aboutsummaryrefslogtreecommitdiffstats
path: root/comms/ecu/files/patch-ac
blob: 048a8c1a0353eecb14b3c653443d9796cb143e46 (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
--- config.c.orig   Wed Sep  2 10:55:04 1998
+++ config.c    Fri Jan 25 23:36:18 2002
@@ -311,9 +311,9 @@
 char *gcc_opts[] =
 {
 #ifdef PEDANTIC
-   "\t-pedantic -ansi -O2 -fno-builtin\\\n",   /* UH OH: see ecu README */
+   "\t-pedantic -ansi -fno-builtin\\\n",   /* UH OH: see ecu README */
 #else
-   "\t-O2 -fno-builtin\\\n",
+   "\t-fno-builtin\\\n",
 #endif
    "\t-fpcc-struct-return -fwritable-strings -finline-functions\\\n",
    "\t-W -Wuninitialized -Wunused -Wshadow -Wcomment -Wswitch\\\n",
@@ -447,7 +447,7 @@
 
 char *bsd_libs = "-lcurses -ltermcap";
 
-char *freebsd_libs = "-lncurses -lmytinfo -lcompat";
+char *freebsd_libs = "-lcurses -lcompat";
 
 char *sco_system[] =
 {
@@ -729,7 +729,7 @@
 {
    char **strs;
 
-   fputs("CFLAGS = \\\n", fpmake);
+   fputs("CFLAGS += \\\n", fpmake);
    strs = gcc_opts;
    while (*strs)
        fputs(*strs++, fpmake);
@@ -1235,7 +1235,7 @@
            break;
        case C_GCC:
            if (sys == S_FREEBSD)
-               fputs("CC = cc\n", fpmake);
+               fputs("CC ?= cc\n", fpmake);
            else
                fputs("CC = gcc\n", fpmake);
            gen_gcc_cflags();