Browse Source

build: Fix warning about --version-info

Serj Kalichev 9 months ago
parent
commit
d78768b041
3 changed files with 2 additions and 2 deletions
  1. 0 1
      Makefile.am
  2. 1 1
      configure.ac
  3. 1 0
      tinyrl/module.am

+ 0 - 1
Makefile.am

@@ -5,7 +5,6 @@ ACLOCAL_AMFLAGS = -I m4
 AM_CPPFLAGS = -I. -I$(top_srcdir)
 AM_LD = $(CC)
 VERSION_INFO = -version-info $(SONAME_CURRENT):$(SONAME_REVISION):$(SONAME_AGE)
-AM_LDFLAGS = $(VERSION_INFO)
 
 if DEBUG
 DEBUG_CFLAGS = -DDEBUG

+ 1 - 1
configure.ac

@@ -13,7 +13,7 @@ AC_CONFIG_AUX_DIR(aux_scripts)
 AC_CONFIG_MACRO_DIR([m4])
 
 # Values for SONAME. See -version-info for details.
-AC_SUBST(SONAME_CURRENT, 1)
+AC_SUBST(SONAME_CURRENT, 3)
 AC_SUBST(SONAME_REVISION, 0)
 AC_SUBST(SONAME_AGE, 0)
 

+ 1 - 0
tinyrl/module.am

@@ -2,6 +2,7 @@
 lib_LTLIBRARIES += libtinyrl.la
 libtinyrl_la_LIBADD = liblub.la
 libtinyrl_la_DEPENDENCIES = liblub.la
+libtinyrl_la_LDFLAGS = $(AM_LDFLAGS) $(VERSION_INFO)
 
 libtinyrl_la_SOURCES = \
 	tinyrl/tinyrl.c \