On Tue, May 3, 2016 at 3:06 AM, Richard Henderson <[email protected]> wrote: > On 05/02/2016 03:10 PM, Christopher Friedt wrote: >> >> %.a: >> +ifdef CONFIG_DARWIN >> + $(call quiet-command,rm -f $@ && libtool -static -o $@ $^," >> libtool $(TARGET_DIR)$@") >> +else >> $(call quiet-command,rm -f $@ && $(AR) rcs $@ $^," AR >> $(TARGET_DIR)$@") >> +endif >> > > Does it work to use libtool -static everywhere?
That *would* be nice... yeah, it would be nice if Apple's tools could work the same as *all* of the other unices out there. Unfortunately, that's not the case, since at least GNU libtool does *not* accept the "-static" argument. To be honest, if it weren't for the man page for libtool on Mac OS X [1] dating all the way back to Snow Leopard saying that libtool is the preferred tool on Mac for creating static archives, I'm left wondering if this is just a massive oversight / bug in Apple's ld64. [1] http://www.unix.com/man-page/osx/1/libtool/
