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