From 72ab92294cce711d667eebd61ad7b69629b4cf60 Mon Sep 17 00:00:00 2001 From: habu Date: Fri, 18 Jan 2002 10:53:29 +0000 Subject: [PATCH] =?utf8?q?CFLAGS=EF=BD=A4=EF=BE=98=EF=BD=A4=EF=BE=8E-fno-s?= =?utf8?q?trength-reduce=EF=BD=A4=EF=BE=8E=EF=BE=84=EF=BE=89=EF=BD=B2?= =?utf8?q?=EF=BE=83=EF=BD=A4=EE=86=9Bonfigure.in=EF=BD=A4=EF=BE=87?= =?utf8?q?=EF=BD=B9=EF=BE=94=EF=BD=A4=EF=BE=8A=EF=BD=A4=EF=BD=A6=EF=BD=A4?= =?utf8?q?=E9=9A=8D=EF=BD=A6=EF=BD=A4=EF=BE=8B=EF=BD=A4=EF=BD=B7=EF=BD=A4?= =?utf8?q?=EF=BD=BF=EF=BD=A1=EF=BD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- configure.in | 5 +++++ src/Makefile.am | 2 -- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/configure.in b/configure.in index ca917a7e7..1b875c556 100644 --- a/configure.in +++ b/configure.in @@ -22,6 +22,11 @@ AC_ARG_ENABLE(worldscore, AC_ARG_ENABLE(chuukei, [ --enable-chuukei enable internet chuukei support], AC_DEFINE(CHUUKEI)) +dnl -fno-strength-reduce prevents a bug in some versions of gcc +if test "$GCC" = yes; then + CFLAGS="$CFLAGS -fno-strength-reduce" +fi + dnl Checks for libraries. dnl Replace `main' with a function in -lncurses: AC_CHECK_LIB(ncurses, initscr, [AC_DEFINE(USE_GCU) AC_DEFINE(USE_NCURSES) LIBS="$LIBS -lncurses"]) diff --git a/src/Makefile.am b/src/Makefile.am index 0c394d65b..9b6b84078 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -29,5 +29,3 @@ EXTRA_hengband_SOURCES = \ main-dos.c main-ibm.c \ makefile.bcc makefile.std makefile.dos makefile.ibm \ readdib.c script.c wall.bmp - -CFLAGS = @CFLAGS@ -Wall -fno-strength-reduce -- 2.11.0