I have a project that I'm building on OS X using autotools. I'd like to build a universal binary, but putting multiple -arch
options in OBJCFLAGS
conflicts with gcc's -M
(which automake uses for dependency tracking). I can see a couple workarounds, but none seems straightforward.
Is there a way to force preprocessing to be separate from compilation (so -M is given to CPP
, while -arch is handed to OBJC
)?
I can see that automake supports options for disabling dependency tracking, and enabling it when it can't be done as a side-effect. Is there a way to force the use of the older style of tracking even when the side-effect based tracking is available?
I don't have any experience with lipo
. Is there a good way to tie it into the autotools work flow?