Well, my program takes 45 minutes to run on a small sample of data with gcc, but it only takes 15 minutes with icc. I can get it to work without -static. It seems completely irrational to me to do that, but I guess with the current state of a mac, that is what I'll have to do. I don't know why my program should have to go waste time reading directories of shared libraries, but I can't seem to do anything about it. Maybe in the end I'll have to install the gnu gcc myself with at -static option at that point, if I really want to waste time. For now, I'm just going to give up on mac supplying the static libraries for gcc. I guess it's far to much to ask for the most obviously important part of a computer to come automatically installed.