Tiger, gcc and pwgen

Ugh. Tiger broke my tool chain and I didn't realize it. Trying to install something as straight forward as pwgen via fink (well really apt-get) I got the following errors:

checking for gcc... gcc
checking whether the C compiler (gcc -L/sw/lib) works... no
configure: error: installation or configuration problem: C compiler cannot create executables.
### execution of ./configure failed, exit code 1
Failed: compiling pwgen-2.03-11 failed

The problem is that even though I had installed XCode when I upgraded to Tiger, the gcc3.3 that comes with XCode doesn't work. The sollution is at the very least the following:

sudo gcc_select 4.0

This selects the 4.0 gcc (assuming you have it installed). Supposedly XCode 2.1 fixes the issue, but it's not done downloading yet....