linux-sctp.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH lksctp-tools] withsctp: use @PACKAGE_VERSION@ in withsctp.h
@ 2018-08-16  6:12 Xin Long
  2018-08-16 11:08 ` Neil Horman
  2018-08-16 18:18 ` Marcelo Ricardo Leitner
  0 siblings, 2 replies; 3+ messages in thread
From: Xin Long @ 2018-08-16  6:12 UTC (permalink / raw)
  To: linux-sctp

use @PACKAGE_VERSION@ to replace the hardcode version.

Signed-off-by: Xin Long <lucien.xin@gmail.com>
---
 Makefile.rules           | 3 ++-
 src/withsctp/withsctp.in | 3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/Makefile.rules b/Makefile.rules
index 83f5f0c..d3693fa 100644
--- a/Makefile.rules
+++ b/Makefile.rules
@@ -15,4 +15,5 @@
 edit = @sed \
 	-e "s|\@bindir\@|$(bindir)|" \
 	-e "s|\@libdir\@|$(libdir)|" \
-	-e "s|\@PACKAGE\@|$(PACKAGE)|"
+	-e "s|\@PACKAGE\@|$(PACKAGE)|" \
+	-e "s|\@PACKAGE_VERSION\@|$(PACKAGE_VERSION)|"
diff --git a/src/withsctp/withsctp.in b/src/withsctp/withsctp.in
index 7f182ba..fda5ebc 100644
--- a/src/withsctp/withsctp.in
+++ b/src/withsctp/withsctp.in
@@ -2,7 +2,8 @@
 # -*- sh -*-
 LIBDIR=@libdir@/@PACKAGE@
 BINDIR=@bindir@
-export LD_PRELOAD=${LIBDIR}/libwithsctp.so.1.0.17
+LIBVER=@PACKAGE_VERSION@
+export LD_PRELOAD=${LIBDIR}/libwithsctp.so.${LIBVER}
 if ! ${BINDIR}/checksctp 2> /dev/null
 then
     ${BINDIR}/checksctp;
-- 
2.1.0

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-08-16 18:18 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-08-16  6:12 [PATCH lksctp-tools] withsctp: use @PACKAGE_VERSION@ in withsctp.h Xin Long
2018-08-16 11:08 ` Neil Horman
2018-08-16 18:18 ` Marcelo Ricardo Leitner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).