I need to wrap a Fortran library in Python, and it needs to be 32 bit since I'm using the 32 bit EPD. To do that I'm using f2py that ships with EPD and gcc 4.8 that I installed from fink. I issue the following command:

f2py -c -m libplot3d --fcompiler=gnu95 plot3d.f90

The output is at the bottom. Note the "file was built for i386 which is not the architecture being linked (x86_64)" warning at the end. So what am I doing wrong, and how do I address this issue?