Browse Source

build: Fix warnings about version-info for binaries

Serj Kalichev 1 year ago
parent
commit
ee969170b5
6 changed files with 5 additions and 3 deletions
  1. 0 1
      Makefile.am
  2. 1 1
      clish/module.am
  3. 1 1
      configure.ac
  4. 1 0
      konf/module.am
  5. 1 0
      lub/module.am
  6. 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
clish/module.am

@@ -5,7 +5,7 @@ libclish_la_SOURCES = \
 	clish/plugin_builtin.c \
 	clish/private.h
 
-libclish_la_LDFLAGS = $(VERSION_INFO) @XML_LDFLAGS@
+libclish_la_LDFLAGS = $(AM_LDFLAGS) $(VERSION_INFO) @XML_LDFLAGS@
 libclish_la_CFLAGS = @XML_CFLAGS@ $(DEBUG_CFLAGS) $(LEGACY_CFLAGS)
 libclish_la_DEPENDENCIES = \
 	liblub.la \

+ 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, 2)
 AC_SUBST(SONAME_REVISION, 0)
 AC_SUBST(SONAME_AGE, 0)
 

+ 1 - 0
konf/module.am

@@ -3,6 +3,7 @@ lib_LTLIBRARIES += libkonf.la
 libkonf_la_SOURCES =
 libkonf_la_LIBADD = liblub.la
 libkonf_la_DEPENDENCIES = liblub.la
+libkonf_la_LDFLAGS = $(AM_LDFLAGS) $(VERSION_INFO)
 
 nobase_include_HEADERS += \
 	konf/tree.h \

+ 1 - 0
lub/module.am

@@ -2,6 +2,7 @@
 lib_LTLIBRARIES         += liblub.la
 liblub_la_SOURCES        =
 liblub_la_LIBADD         =
+liblub_la_LDFLAGS = $(AM_LDFLAGS) $(VERSION_INFO)
 
 nobase_include_HEADERS += \
     lub/argv.h \

+ 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 \