summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorTim Harder <radhermit@gmail.com>2011-05-06 01:32:31 -0700
committerLars-Dominik Braun <lars@6xq.net>2011-05-07 17:13:57 +0200
commite8c314c615092555d5fe79119c176ec0413caf3d (patch)
tree81e0d65a87ca7404b489b92111747a871c20f74b /Makefile
parent49f64fd33c202831407ba6b02fa74c2037052f1c (diff)
downloadpianobar-e8c314c615092555d5fe79119c176ec0413caf3d.tar.gz
pianobar-e8c314c615092555d5fe79119c176ec0413caf3d.tar.bz2
pianobar-e8c314c615092555d5fe79119c176ec0413caf3d.zip
Use the correct linking order for the --as-needed flag
Closes #117
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index e448762..05bc01e 100644
--- a/Makefile
+++ b/Makefile
@@ -88,9 +88,9 @@ pianobar: ${PIANOBAR_OBJ} ${PIANOBAR_HDR} libpiano.so.0
else
pianobar: ${PIANOBAR_OBJ} ${PIANOBAR_HDR} ${LIBPIANO_OBJ} ${LIBWAITRESS_OBJ} \
${LIBWAITRESS_HDR} ${LIBEZXML_OBJ} ${LIBEZXML_HDR}
- ${CC} ${CFLAGS} ${LDFLAGS} -lao -lpthread -lm ${LIBFAAD_LDFLAGS} \
- ${LIBMAD_LDFLAGS} -o $@ ${PIANOBAR_OBJ} ${LIBPIANO_OBJ} \
- ${LIBWAITRESS_OBJ} ${LIBEZXML_OBJ}
+ ${CC} ${CFLAGS} ${LDFLAGS} ${PIANOBAR_OBJ} ${LIBPIANO_OBJ} \
+ ${LIBWAITRESS_OBJ} ${LIBEZXML_OBJ} -lao -lpthread -lm \
+ ${LIBFAAD_LDFLAGS} ${LIBMAD_LDFLAGS} -o $@
endif
# build shared and static libpiano