254.gap SPEC2000

Dear guys,

     I am writing some scripts to allow me to compile the programs in SPEC2000 using llvm-gcc. I have been successfull with almost all of them, but need some help with 254.gap. I am producing a .bc file using llvm-gcc, and then a .s using llc. Then I use gcc to produce an executable. In this last phase, I am getting:

/usr/bin/ld: Undefined symbols:

I probably must have to pass some flags to gcc to define those symbols. Has any of you guys tried to compile the SPEC's in this way, and could give me your command line for gcc? I am in Mac OS X 10.4.8. My script is this one here:

Yep. The following should work on Mac OS X.