summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorAndres J Ruiz Torres <andresruiz2010@gmail.com>2012-05-04 00:24:55 -0400
committerLars-Dominik Braun <lars@6xq.net>2012-05-09 09:43:47 +0200
commitc9aff4f4ceddc70b8b98ca8d5d248eac6be2619f (patch)
tree40dfd1f3d31da97dea7dceb770dd03854d31efbd /Makefile
parenteee4424677964ddc5b0f01d120db71f160a7c9e1 (diff)
downloadpianobar-windows-c9aff4f4ceddc70b8b98ca8d5d248eac6be2619f.tar.gz
pianobar-windows-c9aff4f4ceddc70b8b98ca8d5d248eac6be2619f.tar.bz2
pianobar-windows-c9aff4f4ceddc70b8b98ca8d5d248eac6be2619f.zip
Correct LDFLAGS for DYNLINK=1
Closes #253
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 2 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 84d1081..d018943 100644
--- a/Makefile
+++ b/Makefile
@@ -91,8 +91,7 @@ ifeq (${DYNLINK},1)
pianobar: ${PIANOBAR_OBJ} ${PIANOBAR_HDR} libpiano.so.0
@echo " LINK $@"
@${CC} -o $@ ${PIANOBAR_OBJ} ${LDFLAGS} -lao -lpthread -lm -L. -lpiano \
- ${LIBFAAD_LDFLAGS} ${LIBMAD_LDFLAGS} ${LIBGNUTLS_LDFLAGS} \
- ${LIBGCRYPT_LDFLAGS} ${LIBJSONC_LDFLAGS}
+ ${LIBFAAD_LDFLAGS} ${LIBMAD_LDFLAGS} ${LIBGNUTLS_LDFLAGS}
else
pianobar: ${PIANOBAR_OBJ} ${PIANOBAR_HDR} ${LIBPIANO_OBJ} ${LIBWAITRESS_OBJ} \
${LIBWAITRESS_HDR}
@@ -108,7 +107,7 @@ libpiano.so.0: ${LIBPIANO_RELOBJ} ${LIBPIANO_HDR} ${LIBWAITRESS_RELOBJ} \
${LIBWAITRESS_HDR} ${LIBPIANO_OBJ} ${LIBWAITRESS_OBJ}
@echo " LINK $@"
@${CC} -shared -Wl,-soname,libpiano.so.0 ${CFLAGS} ${LDFLAGS} \
- ${LIBGNUTLS_LDFLAGS} ${LIBGCRYPT_LDFLAGS} \
+ ${LIBGNUTLS_LDFLAGS} ${LIBGCRYPT_LDFLAGS} ${LIBJSONC_LDFLAGS} \
-o libpiano.so.0.0.0 ${LIBPIANO_RELOBJ} \
${LIBWAITRESS_RELOBJ}
@ln -s libpiano.so.0.0.0 libpiano.so.0