Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame^] | 1 | From 7c0ef4d441b3833e721df58f56e2cb8c81b34df4 Mon Sep 17 00:00:00 2001 |
| 2 | From: Xin Long <lucien.xin@gmail.com> |
| 3 | Date: Thu, 16 Aug 2018 14:12:01 +0800 |
| 4 | Subject: [PATCH] withsctp: use @PACKAGE_VERSION@ in withsctp.h |
| 5 | |
| 6 | use @PACKAGE_VERSION@ to replace the hardcode version. |
| 7 | |
| 8 | Signed-off-by: Xin Long <lucien.xin@gmail.com> |
| 9 | Acked-by: Neil Horman <nhorman@tuxdriver.com> |
| 10 | Signed-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 | |
| 16 | diff --git a/Makefile.rules b/Makefile.rules |
| 17 | index 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)|" |
| 27 | diff --git a/src/withsctp/withsctp.in b/src/withsctp/withsctp.in |
| 28 | index 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 | -- |
| 42 | 2.7.4 |
| 43 | |