From c7ccde864e9099f48aacdced2025d2520b59916d Mon Sep 17 00:00:00 2001 From: tg Date: Mon, 6 Apr 2009 08:37:42 +0000 Subject: [PATCH] =?UTF-8?q?apply=20workaround=20given=20to=20me=20in=20IRC?= =?UTF-8?q?=20yesternight,=20just=20define=20away=20the=20const=20keyword?= =?UTF-8?q?=20to=20not=20trigger=20the=20famous=20ACK=20const=20bug=20(no?= =?UTF-8?q?=20chance=20it=E2=80=99ll=20get=20fixed,=20not=20even=20in=20Mi?= =?UTF-8?q?nix=203=E2=80=99s=20ACK=20version)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Build.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Build.sh b/Build.sh index 2f474f3..28f4561 100644 --- a/Build.sh +++ b/Build.sh @@ -1,5 +1,5 @@ #!/bin/sh -srcversion='$MirOS: src/bin/mksh/Build.sh,v 1.388 2009/04/06 08:33:36 tg Exp $' +srcversion='$MirOS: src/bin/mksh/Build.sh,v 1.389 2009/04/06 08:37:42 tg Exp $' #- # Environment used: CC CFLAGS CPPFLAGS LDFLAGS LIBS NOWARN NROFF TARGET_OS # CPPFLAGS recognised: MKSH_SMALL MKSH_ASSUME_UTF8 MKSH_NOPWNAM MKSH_NOVI @@ -325,8 +325,6 @@ MidnightBSD) Minix) CPPFLAGS="$CPPFLAGS -DMKSH_UNEMPLOYED -DMKSH_CONSERVATIVE_FDS" CPPFLAGS="$CPPFLAGS -D_POSIX_SOURCE -D_POSIX_1_SOURCE=2 -D_MINIX" - warn=" but will probably work with GCC" - warn="$warn${nl}but not with ACK - /usr/bin/cc - yet)" oldish_ed=no-stderr-ed # /usr/bin/ed(!) is broken : ${HAVE_SETLOCALE_CTYPE=0} ;; @@ -504,7 +502,8 @@ rm -f x echo 'int main(void) { return (0); }' >scn.c case $ct in ack) - echo >&2 'Warning: the Amsterdam Compiler Kit is buggy.' + # work around “the famous ACK const bug” + CPPFLAGS="-Dconst= $CPPFLAGS" ;; adsp) echo >&2 'Warning: Analog Devices C++ compiler for Blackfin, TigerSHARC