7742f0d00aeebe949b216eb95a86b845d7147d21~suv # intercept -arch option and set SIZEXX
7742f0d00aeebe949b216eb95a86b845d7147d21~suv # which architecture are we compiling for?
7742f0d00aeebe949b216eb95a86b845d7147d21~suv # if the -c option is given, the output is .o
7742f0d00aeebe949b216eb95a86b845d7147d21~suv # if the output file is given by a -o option, record it
7742f0d00aeebe949b216eb95a86b845d7147d21~suv # Note each file ending by ${SUFFIX} and remember the last one
7742f0d00aeebe949b216eb95a86b845d7147d21~suv # Transform them in .o
7742f0d00aeebe949b216eb95a86b845d7147d21~suv# What is the output?
7742f0d00aeebe949b216eb95a86b845d7147d21~suv # It is an executable whose is name is the LASTFILE without suffix
7742f0d00aeebe949b216eb95a86b845d7147d21~suv# Othewise, the output is just the ${OUTPUT} variable as computed before
7742f0d00aeebe949b216eb95a86b845d7147d21~suv# For some reason, -dynamiclib and -lpython2.6 are missing when linking
7742f0d00aeebe949b216eb95a86b845d7147d21~suv# .so files. Add them, except if -bundle is set (incompatible switches)
7742f0d00aeebe949b216eb95a86b845d7147d21~suv ! `echo $NEWARGS | grep -q bundle`; then
7742f0d00aeebe949b216eb95a86b845d7147d21~suv NEWARGS="${NEWARGS} ${PREFIX}/lib/libpython2.6.dylib -dynamiclib"
7742f0d00aeebe949b216eb95a86b845d7147d21~suv# Now, compile
7742f0d00aeebe949b216eb95a86b845d7147d21~suv # No size indication given, just proceed with default
7742f0d00aeebe949b216eb95a86b845d7147d21~suv if `${COMPILER} $NEWARGS`; then
7742f0d00aeebe949b216eb95a86b845d7147d21~suv if `${COMPILER} -m32 $NEWARGS`; then
7742f0d00aeebe949b216eb95a86b845d7147d21~suv if `${COMPILER} -m64 $NEWARGS`; then
7742f0d00aeebe949b216eb95a86b845d7147d21~suv # Universal case
7742f0d00aeebe949b216eb95a86b845d7147d21~suv if `${COMPILER} -m32 $NEWARGS`; then
7742f0d00aeebe949b216eb95a86b845d7147d21~suv if `${COMPILER} -m64 $NEWARGS`; then