From: habu Date: Fri, 18 Jan 2002 10:53:29 +0000 (+0000) Subject: CFLAGS、リ、ホ-fno-strength-reduce、ホトノイテ、onfigure.in、ヌケヤ、ハ、ヲ、隍ヲ、ヒ、キ、ソ。」 X-Git-Tag: v2.1.2~2772 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=72ab92294cce711d667eebd61ad7b69629b4cf60;p=hengbandforosx%2Fhengbandosx.git CFLAGS、リ、ホ-fno-strength-reduce、ホトノイテ、onfigure.in、ヌケヤ、ハ、ヲ、隍ヲ、ヒ、キ、ソ。」 --- 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