The patch seems to work correctly on AIX, setting the COLLECT_GCC_OPTIONS in the object-only linking case where your original patch did not. David P.S. Next time, please do not commit a patch right before leaving for a long vacation where you will be out of contact.