shithub: opusfile

Download patch

ref: f207cef625d04330af6b57dc5ee6288d0c662d0a
parent: 9bc622bbe1822584eb8d774700a11b592f462b49
author: Ralph Giles <[email protected]>
date: Sun Sep 16 14:16:16 EDT 2012

Fix link order and add libm to the seeking example.

Needed to build on my Fedora 16 machine.

--- a/unix/Makefile
+++ b/unix/Makefile
@@ -119,14 +119,14 @@
 # opusfile_example
 ${OPUSFILE_EXAMPLE_TARGET}: ${OPUSFILE_EXAMPLE_OBJS} ${LIBOPUSFILE_TARGET}
 	mkdir -p ${TARGETBINDIR}
-	${CC} ${CFLAGS} ${OPUSFILE_EXAMPLE_OBJS} ${LIBS} \
-         ${SEEKING_EXAMPLE_LIBS} ${LIBOPUSFILE_TARGET} -o $@
+	${CC} ${CFLAGS} ${OPUSFILE_EXAMPLE_OBJS} \
+         ${LIBOPUSFILE_TARGET} ${SEEKING_EXAMPLE_LIBS} ${LIBS} -o $@
 
 # seeking_example
 ${SEEKING_EXAMPLE_TARGET}: ${SEEKING_EXAMPLE_OBJS} ${LIBOPUSFILE_TARGET}
 	mkdir -p ${TARGETBINDIR}
-	${CC} ${CFLAGS} ${SEEKING_EXAMPLE_OBJS} ${LIBS} ${LIBOPUSFILE_TARGET} \
-         -o $@
+	${CC} ${CFLAGS} ${SEEKING_EXAMPLE_OBJS} ${LIBOPUSFILE_TARGET} \
+        ${SEEKING_EXAMPLE_LIBS} ${LIBS} -o $@
 
 #TODO: tests
 # foo