ref: e1b0a7ca73e4bd505b9926767d27a6d213bdc1a8
parent: 98c7eb717003c981071a376a8bbb52f9d1d5e1f4
author: Ralph Giles <giles@mozilla.com>
date: Mon Sep 24 05:01:46 EDT 2012
Use $(AR) for ar to support cross-compiling. GNU make provides a default definition for this variable. I've no idea what's special about mingw32-ar vs native ar, but it seems to be required.
--- a/unix/Makefile
+++ b/unix/Makefile
@@ -126,7 +126,7 @@
# libopusfile
${LIBOPUSFILE_TARGET}: ${LIBOPUSFILE_OBJS}
mkdir -p ${TARGETLIBDIR}
- ar cqs $@ ${LIBOPUSFILE_OBJS}
+ $(AR) cqs $@ ${LIBOPUSFILE_OBJS}
# opusfile_example
${OPUSFILE_EXAMPLE_TARGET}: ${OPUSFILE_EXAMPLE_OBJS} ${LIBOPUSFILE_TARGET}