Fix using wrong .o files with Apple libtool

This commit is contained in:
Jonathan Schleifer 2018-01-20 00:16:11 +01:00
parent 408f3121a3
commit 7add4e1c99
No known key found for this signature in database
GPG key ID: 28D65178B37F33E3

View file

@ -351,7 +351,7 @@ ${STATIC_PIC_LIB} ${STATIC_PIC_LIB_NOINST}: ${EXT_DEPS} ${LIB_OBJS} ${LIB_OBJS_E
${LINK_STATUS}
rm -f $@
if test x"${BUILD_AND_HOST_ARE_DARWIN}" = x"yes"; then \
if /usr/bin/libtool -static -o $@ ${OBJS} ${OBJS_EXTRA}; then \
if /usr/bin/libtool -static -o $@ ${LIB_OBJS} ${LIB_OBJS_EXTRA}; then \
${LINK_OK}; \
else \
${LINK_FAILED}; \