* configure.in (ARCHFILE): set even unless --enable-shared on

AIX.  [ruby-talk:61466]

* marshal.c (math.h): should be included after ruby.h on AIX.
  [ruby-talk:61366]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3342 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2003-01-15 06:29:05 +00:00
Родитель 17bb511df2
Коммит 08771defc6
3 изменённых файлов: 11 добавлений и 3 удалений

Просмотреть файл

@ -1,3 +1,11 @@
Wed Jan 15 15:18:38 2003 moumar <moumar@netcourrier.com>
* configure.in (ARCHFILE): set even unless --enable-shared on
AIX. [ruby-talk:61466]
* marshal.c (math.h): should be included after ruby.h on AIX.
[ruby-talk:61366]
Tue Jan 14 21:47:56 2003 Nobuyoshi Nakada <nobu.nokada@softhome.net> Tue Jan 14 21:47:56 2003 Nobuyoshi Nakada <nobu.nokada@softhome.net>
* eval.c (rb_f_require): do not search adding .rb/.so suffixes if * eval.c (rb_f_require): do not search adding .rb/.so suffixes if

Просмотреть файл

@ -805,6 +805,7 @@ if test "$with_dln_a_out" != yes; then
XLDFLAGS='-Wl,-bE:ruby.imp' XLDFLAGS='-Wl,-bE:ruby.imp'
DLDFLAGS='-brtl -eInit_$(TARGET) -bI:$(topdir)/ruby.imp -bM:SRE -T512 -H512 -lc' DLDFLAGS='-brtl -eInit_$(TARGET) -bI:$(topdir)/ruby.imp -bM:SRE -T512 -H512 -lc'
LDFLAGS="-brtl" LDFLAGS="-brtl"
test $GCC = yes || ARCHFILE="ruby.imp"
rb_cv_dlopen=yes ;; rb_cv_dlopen=yes ;;
human*) DLDFLAGS='' human*) DLDFLAGS=''
@ -1091,7 +1092,6 @@ if test "$enable_shared" = 'yes'; then
else else
LIBRUBY_LDSHARED='/usr/ccs/bin/ld' LIBRUBY_LDSHARED='/usr/ccs/bin/ld'
LIBRUBY_DLDFLAGS='-bE:ruby.imp -bM:SRE -bnoentry' LIBRUBY_DLDFLAGS='-bE:ruby.imp -bM:SRE -bnoentry'
ARCHFILE="ruby.imp"
fi fi
LIBRUBYARG_SHARED='-L${libdir} -Wl,lib$(RUBY_SO_NAME).so' LIBRUBYARG_SHARED='-L${libdir} -Wl,lib$(RUBY_SO_NAME).so'
SOLIBS='-lm -lc' SOLIBS='-lm -lc'

Просмотреть файл

@ -10,13 +10,13 @@
**********************************************************************/ **********************************************************************/
#include <math.h>
#include "ruby.h" #include "ruby.h"
#include "rubyio.h" #include "rubyio.h"
#include "st.h" #include "st.h"
#include "util.h" #include "util.h"
#include <math.h>
#define BITSPERSHORT (2*CHAR_BIT) #define BITSPERSHORT (2*CHAR_BIT)
#define SHORTMASK ((1<<BITSPERSHORT)-1) #define SHORTMASK ((1<<BITSPERSHORT)-1)
#define SHORTDN(x) RSHIFT(x,BITSPERSHORT) #define SHORTDN(x) RSHIFT(x,BITSPERSHORT)