From: ts Date: 2004-12-05T02:50:48+09:00 Subject: Re: mkmf problems >>>>> "S" == Stu writes: S> how do I tell mkmf in extconf to use mingw instead of microsoft S> compiler cl.exe ....... ??? By default it use the compiler used to compile ruby. If you really want to change uln% ls a.c b.c uln% uln% ruby -rmkmf -e 'CONFIG["CC"] = "xxx"; create_makefile("a")' creating Makefile uln% uln% make xxx -fPIC -g -O2 -I. -I/usr/local/lib/ruby/1.8/x86_64-linux -I/usr/local/lib/ruby/1.8/x86_64-linux -I. -c a.c make: xxx: Command not found make: *** [a.o] Error 127 uln% S> the other thing is, how do I tell mkmf to include only certain S> ..c files rather than *.c? (or the inverse, what not to include?) define $objs uln% ruby -rmkmf -e '$objs = ["a.o"]; create_makefile("a")' creating Makefile uln% uln% make gcc -fpic -fPIC -g -O2 -I. -I/usr/local/lib/ruby/1.8/x86_64-linux -I/usr/local/lib/ruby/1.8/x86_64-linux -I. -c a.c gcc -fpic -shared -L"/usr/local/lib" -o a.so a.o -ldl -lcrypt -lm -lc uln% Guy Decoux