From: d-lewart@... (Daniel S. Lewart) Date: 2002-03-08T04:18:55+09:00 Subject: Ruby 1.6.7 configure confused by AIX with GCC The default configuration for AIX with GCC fails when building Ruby. Versions: AIX 4.2.1, GCC 3.0.4, Ruby 1.6.7. When I try to build Ruby, configure sets a loader flag to "-brtl", which is fine for AIX cc, but not for gcc, which configure chose to use. Below are the following: 1) excerpts from the output of "make" 2) AIX stanza from configure However, this does work: ./configure --without-gcc How *should* configure behave when GCC is found? 1) Use AIX cc (--without-gcc) 2) Use GCC (adjust loader options) I'll be happy to test any configure patches. Thank you, Daniel Lewart d-lewart@uiuc.edu ------------------------------------------------------------------------------- .... gcc -g -O2 -I. -I. -I/usr/local/encap/ruby-1.6.7/include -c util.c In file included from ruby.h:21, from util.c:20: config.h:2:1: warning: "_ALL_SOURCE" redefined /usr/include/standards.h:89:1: warning: this is the location of the previous definition .... gcc -g -O2 -brtl main.o dmyext.o libruby.a -ldl -lm -o miniruby ld: 0706-005 Cannot find or open file: libgcc.a ld:open(): A file or directory in the path name does not exist. ld: 0706-005 Cannot find or open file: libgcc.a ld:open(): A file or directory in the path name does not exist. make: *** [miniruby] Error 1 ------------------------------------------------------------------------------- case "$target_os" in ... aix*) LDSHARED='/usr/ccs/bin/ld' XLDFLAGS='-Wl,-bE:ruby.imp' DLDFLAGS='-brtl -eInit_$(TARGET) -bI:$(topdir)/ruby.imp -bM:SRE -T512 -H512 -lc' LDFLAGS="-brtl" rb_cv_dlopen=yes ;; ... -------------------------------------------------------------------------------