diff options
author | kris <kris@FreeBSD.org> | 2002-01-26 15:41:23 +0800 |
---|---|---|
committer | kris <kris@FreeBSD.org> | 2002-01-26 15:41:23 +0800 |
commit | 3c630b70f1a07d3dbe73b97c5328a23780bf0664 (patch) | |
tree | 81f0c6fc36ef60808eacc25a937bb3d675971a58 /comms/ecu/files | |
parent | fd07ecea5162c494241d895baadda292f4540713 (diff) | |
download | freebsd-ports-gnome-3c630b70f1a07d3dbe73b97c5328a23780bf0664.tar.gz freebsd-ports-gnome-3c630b70f1a07d3dbe73b97c5328a23780bf0664.tar.zst freebsd-ports-gnome-3c630b70f1a07d3dbe73b97c5328a23780bf0664.zip |
Unbreak on -current, and don't hardwire CC or CFLAGS
Diffstat (limited to 'comms/ecu/files')
-rw-r--r-- | comms/ecu/files/patch-ac | 34 | ||||
-rw-r--r-- | comms/ecu/files/patch-ad | 11 |
2 files changed, 43 insertions, 2 deletions
diff --git a/comms/ecu/files/patch-ac b/comms/ecu/files/patch-ac index 600970b36044..048a8c1a0353 100644 --- a/comms/ecu/files/patch-ac +++ b/comms/ecu/files/patch-ac @@ -1,5 +1,17 @@ ---- config.c.bak Wed Sep 2 21:55:04 1998 -+++ config.c Sun Mar 11 09:49:40 2001 +--- 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"; @@ -9,3 +21,21 @@ 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(); diff --git a/comms/ecu/files/patch-ad b/comms/ecu/files/patch-ad new file mode 100644 index 000000000000..cb619ea92f8f --- /dev/null +++ b/comms/ecu/files/patch-ad @@ -0,0 +1,11 @@ +--- ecushm.c.orig Fri Jan 25 23:15:09 2002 ++++ ecushm.c Fri Jan 25 23:15:19 2002 +@@ -124,7 +124,7 @@ + + #if defined(CFG_MmapSHM) + shm = (ECU_SDS *) mmap(0, sizeof(ECU_SDS), PROT_READ | PROT_WRITE, +- MAP_ANON | MAP_INHERIT | MAP_SHARED, -1, 0); ++ MAP_ANON | MAP_SHARED, -1, 0); + if (shm == (ECU_SDS *) - 1) + { + perror("mmap"); |