SHA256
1
0
forked from pool/antlr3c
antlr3c/antlr-libversion.diff
Jiri Slaby f17979d6c0 Accepting request 402674 from home:jirislaby:branches:network:telephony
- port patches from home:jirislaby:statica
  * add baselibs.conf to have 32bit libs too
  * add fix-LIST-memory-leak.patch
  * add fix-hash-double-free.patch
- use standard library versioning and obsolete the old packages

OBS-URL: https://build.opensuse.org/request/show/402674
OBS-URL: https://build.opensuse.org/package/show/network:telephony/antlr3c?expand=0&rev=9
2016-07-25 11:40:19 +00:00

33 lines
910 B
Diff

Date: 2014-08-17 03:44:06.100706672 +0200
From: Jan Engelhardt <jengelh@inai.de>
"-avoid-version" does not count for compatibility guarantees.
Use one of -version-info, -release or -Wl,--version-script!
---
Makefile.am | 2 +-
configure.ac | 2 ++
2 files changed, 3 insertions(+), 1 deletion(-)
--- a/Makefile.am
+++ b/Makefile.am
@@ -62,7 +62,7 @@ include_HEADERS = include/antlr3.h
include/antlr3treeparser.h \
antlr3config.h
-libantlr3c_la_LDFLAGS = -avoid-version
+libantlr3c_la_LDFLAGS = -version-info @LIB_VERSION@
INCLUDES = -Iinclude
--- a/configure.ac
+++ b/configure.ac
@@ -34,6 +34,8 @@ AC_COPYRIGHT([
])
AC_CONFIG_SRCDIR(src/antlr3parser.c)
+LIB_VERSION=`echo $PACKAGE_VERSION|sed 's@\.@:@g'`
+AC_SUBST([LIB_VERSION])
AC_ARG_ENABLE([debuginfo],
[AS_HELP_STRING([--enable-debuginfo], [Compiles debug info into the library (default --disable-debuginfo)])],