[Distutils] compilation error

Keith Jackson krjackson@lbl.gov
Wed Mar 19 21:22:23 2003


Does anybody know why I'm getting the following error when compiling an 
extension module with gcc and distutils? The compile line works fine 
when I run it by hand, but when distutils runs it I get the following 
error:
gcc: cannot specify -o with -c or -S and multiple compilations
error: command 'gcc' failed with exit status 1

Here's the line that causes the error:
gcc -DNDEBUG -O3 -I/sw/globus/globus/include/gcc32dbgpthr 
-I/sw/include/python2.2 -c src/ftpControl_wrap.c -o 
build/temp.darwin-6.4-PowerMacintosh-2.2/ftpControl_wrap.o

Any thoughts?
thx,
--keith