blob: 2537bb976a23e7e7f1dff8681992abf0a845134b [file] [log] [blame]
Brad Bishop1a4b7ee2018-12-16 17:11:34 -08001From 7c0ef4d441b3833e721df58f56e2cb8c81b34df4 Mon Sep 17 00:00:00 2001
2From: Xin Long <lucien.xin@gmail.com>
3Date: Thu, 16 Aug 2018 14:12:01 +0800
4Subject: [PATCH] withsctp: use @PACKAGE_VERSION@ in withsctp.h
5
6use @PACKAGE_VERSION@ to replace the hardcode version.
7
8Signed-off-by: Xin Long <lucien.xin@gmail.com>
9Acked-by: Neil Horman <nhorman@tuxdriver.com>
10Signed-off-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
11---
12 Makefile.rules | 3 ++-
13 src/withsctp/withsctp.in | 3 ++-
14 2 files changed, 4 insertions(+), 2 deletions(-)
15
16diff --git a/Makefile.rules b/Makefile.rules
17index 83f5f0c..d3693fa 100644
18--- a/Makefile.rules
19+++ b/Makefile.rules
20@@ -15,4 +15,5 @@
21 edit = @sed \
22 -e "s|\@bindir\@|$(bindir)|" \
23 -e "s|\@libdir\@|$(libdir)|" \
24- -e "s|\@PACKAGE\@|$(PACKAGE)|"
25+ -e "s|\@PACKAGE\@|$(PACKAGE)|" \
26+ -e "s|\@PACKAGE_VERSION\@|$(PACKAGE_VERSION)|"
27diff --git a/src/withsctp/withsctp.in b/src/withsctp/withsctp.in
28index 7f182ba..fda5ebc 100644
29--- a/src/withsctp/withsctp.in
30+++ b/src/withsctp/withsctp.in
31@@ -2,7 +2,8 @@
32 # -*- sh -*-
33 LIBDIR=@libdir@/@PACKAGE@
34 BINDIR=@bindir@
35-export LD_PRELOAD=${LIBDIR}/libwithsctp.so.1.0.17
36+LIBVER=@PACKAGE_VERSION@
37+export LD_PRELOAD=${LIBDIR}/libwithsctp.so.${LIBVER}
38 if ! ${BINDIR}/checksctp 2> /dev/null
39 then
40 ${BINDIR}/checksctp;
41--
422.7.4
43