matz / netlab.co.jp (Yukihiro Matsumoto) writes:

> Config::CONFIG contains expanded values.  Config::MAKEFILE_CONFIG,
> which is CONFIG in mkmf, contains unexpanded values.
> 
> It's not a bug.  Show me the problem, so that I can help you.

Run 'ruby Makefile.RB' in eruby (I used 0.0.7), and the resulting
makefile contains:

     # Generated automatically by Makefile.RB.
     CC = gcc
     prefix = /tc/usr
     bindir = $(prefix)/bin
     libdir = $(prefix)/lib
     hdrdir = /tc/usr/lib/ruby/1.5/i686-linux
     CFLAGS = -I$(hdrdir) -g -O2
     LDFLAGS = -rdynamic
     LIBS = -ldl -lcrypt -lm
     XLDFLAGS =
     DLDFLAGS =
     LDSHARED = gcc -shared
     INSTALL_PROGRAM = ruby -r ftools -e 'File.install ARGV[0], ARGV[1], 0755, true'
     OBJS = eruby.o eruby_logo.o eruby_main.o
     RUBY_INSTALL_NAME = ruby
     LIBRUBYARG = $(LIBRUBY_A)
     TARGET = eruby
     .c.o:
             $(CC) $(CFLAGS) -c $<
     all: $(TARGET)
     install: all
             $(INSTALL_PROGRAM) $(TARGET) $(bindir)/$(TARGET)
     clean:
             rm -f $(TARGET) $(OBJS) *~
     distclean: clean
             rm -f Makefile
     $(TARGET): $(OBJS)
             $(CC) $(LDFLAGS) $(XLDFLAGS) $(OBJS) $(LIBRUBYARG) $(LIBS) -o $@
     eruby_logo.c: eruby_logo.gif
             ./bin2c eruby_logo.gif

The definition of LIBRUBYARG is $(LIBRUBY_A), which is undefined at
this level (it's defined in CONFIG, but never makes it this far). As a 
result, you can't link eruby.


Regards


Dave