summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars-Dominik Braun <lars@6xq.net>2012-05-17 21:47:28 +0200
committerLars-Dominik Braun <lars@6xq.net>2012-05-17 21:47:28 +0200
commitc922257347ee0cf5ea6cdd65786da2774c79c132 (patch)
tree2de63135c237b0e87b3b424ea1e3108227301aef
parent7df9371491e96a99c1e463f7787aede352ac5a37 (diff)
downloadpianobar-windows-c922257347ee0cf5ea6cdd65786da2774c79c132.tar.gz
pianobar-windows-c922257347ee0cf5ea6cdd65786da2774c79c132.tar.bz2
pianobar-windows-c922257347ee0cf5ea6cdd65786da2774c79c132.zip
Fix dynlink with --as-needed
Closes #258.
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index d018943..8d303e3 100644
--- a/Makefile
+++ b/Makefile
@@ -107,9 +107,9 @@ 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} ${LIBJSONC_LDFLAGS} \
-o libpiano.so.0.0.0 ${LIBPIANO_RELOBJ} \
- ${LIBWAITRESS_RELOBJ}
+ ${LIBWAITRESS_RELOBJ} ${LIBGNUTLS_LDFLAGS} ${LIBGCRYPT_LDFLAGS} \
+ ${LIBJSONC_LDFLAGS}
@ln -s libpiano.so.0.0.0 libpiano.so.0
@ln -s libpiano.so.0 libpiano.so
@echo " AR libpiano.a"