diff options
| author | eban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2001-04-22 09:49:15 +0000 |
|---|---|---|
| committer | eban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2001-04-22 09:49:15 +0000 |
| commit | f4d1c95509b84bdd81be31b80fbfd159a6a6f2ce (patch) | |
| tree | bf14dc89ee0ace635fd8a0ba21dc8fa101d2fc9f | |
| parent | a57788b52dc388b4b3087cd293eb496314a2924b (diff) | |
| download | ruby-f4d1c95509b84bdd81be31b80fbfd159a6a6f2ce.tar.gz ruby-f4d1c95509b84bdd81be31b80fbfd159a6a6f2ce.tar.xz ruby-f4d1c95509b84bdd81be31b80fbfd159a6a6f2ce.zip | |
* configure.in: add -mieee to CFLAGS on Linux/Alpha
to disable "DIVISION BY ZERO" exception.
* configure.in: remove -ansi on OSF/1.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1331 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
| -rw-r--r-- | ChangeLog | 7 | ||||
| -rw-r--r-- | configure.in | 9 |
2 files changed, 13 insertions, 3 deletions
@@ -1,3 +1,10 @@ +Sun Apr 22 17:44:37 2001 WATANABE Hirofumi <eban@ruby-lang.org> + + * configure.in: add -mieee to CFLAGS on Linux/Alpha + to disable "DIVISION BY ZERO" exception. + + * configure.in: remove -ansi on OSF/1. + Wed Apr 18 04:37:51 2001 Wakou Aoyama <wakou@fsinet.or.jp> * lib/cgi.rb: CGI::Cookie: no use PATH_INFO. diff --git a/configure.in b/configure.in index 917120310..9cd889871 100644 --- a/configure.in +++ b/configure.in @@ -251,6 +251,11 @@ freebsd*) LIBS="-lm $LIBS" fi fi ;; +linux*) LIBS="-lm $LIBS" + case "$target_cpu" in + alpha*) + CFLAGS="-mieee $CFLAGS" ;; + esac ;; *) LIBS="-lm $LIBS";; esac AC_CHECK_LIB(crypt, crypt) @@ -925,9 +930,7 @@ case "$target_os" in CFLAGS="$CFLAGS -DOS2" ;; osf*) - if test "$without_gcc" = "no" ; then - CFLAGS="$CFLAGS -ansi" - else + if test "$without_gcc" = "yes" ; then # compile something small: taint.c is fine for this. # the main point is the '-v' flag of 'cc'. case "`cc -v -I. -c main.c -o /tmp/main.o 2>&1`" in |
