On Saturday 11 December 2004 04:34 pm, Austin Ziegler wrote:
    > > I must have missed something. What exactly is the problem with
> > compiling ruby with RUBYOPT? (I searched the RubyGemsDev mailing
> > list and couldn't find a reference).
>
> Once miniruby is built, if RUBYOPT is set, then it can't find
> "ubygems" and the build dies.

I still must be missing something ... with Ruby 1.8.2.preview2 ...

    traken$ echo $RUBYOPT
    rubygems
    traken$ make
    gcc -g -O2   -I. -I.  -c array.c
    gcc -g -O2   -I. -I.  -c bignum.c
    gcc -g -O2   -I. -I.  -c class.c

[... many line elided ...]

    ar rcu libruby-static.a array.o bignum.o class.o compar.o dir.o dln.o 
enum.o error.o eval.o file.o gc.o hash.o inits.o io.o marshal.o math.o 
numeric.o object.o pack.o parse.o process.o prec.o random.o range.o re.o 
regex.o ruby.o signal.o sprintf.o st.o string.o struct.o time.o util.o 
variable.o version.o  dmyext.o
    gcc -g -O2   -I. -I.  -c main.c
    gcc -g -O2    -rdynamic  main.o dmyext.o libruby-static.a -ldl -lcrypt -lm   
-o miniruby
    compiling Win32API
    compiling bigdecimal

[... more lines elided ...]

    make[1]: Entering directory `/home/jim/pkgs/ruby-1.8.2-preview3'
    gcc -g -O2    -rdynamic -L.   main.o  -lruby-static -ldl -lcrypt -lm   -o 
ruby
    make[1]: Leaving directory `/home/jim/pkgs/ruby-1.8.2-preview3'
    traken$ make test
    test succeeded
    traken$ echo $RUBYOPT
    rubygems

AFAICT miniruby builds fine.  Am I doing something different than the those 
having a problem?

-- 
-- Jim Weirich    jim / weirichhouse.org     http://onestepback.org
-----------------------------------------------------------------
"Beware of bugs in the above code; I have only proved it correct, 
not tried it." -- Donald Knuth (in a memo to Peter van Emde Boas)