From: Ivan Maidanski Date: Wed, 1 Mar 2017 08:10:00 +0000 (+0300) Subject: Move libraries version info to the beginning of Makefile.am X-Git-Tag: v8.0.0~896 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c4e67b4a301bea050e5e21d606e62b3f8f4a9a01;p=platform%2Fupstream%2Flibgc.git Move libraries version info to the beginning of Makefile.am (code refactoring) * Makefile.am (LIBGC_VER_INFO, LIBGCCPP_VER_INFO): New variable; add comment about the version update rule. * cord/cord.am (LIBCORD_VER_INFO): Likewise. * Makefile.am (libgc_la_LDFLAGS, libgccpp_la_LDFLAGS): Use LIBGC[CPP]_VER_INFO instead the direct hard-coding of version info. * cord/cord.am (libcord_la_LDFLAGS): Likewise. --- diff --git a/Makefile.am b/Makefile.am index 8fcd1b8..689e0bf 100644 --- a/Makefile.am +++ b/Makefile.am @@ -11,6 +11,12 @@ ## Process this file with automake to produce Makefile.in. +# Info (current:revision:age) for the Libtool versioning system. +# These numbers should be updated at most once just before the release, +# and, optionally, at most once during the development (after the release). +LIBGC_VER_INFO = 1:3:0 +LIBGCCPP_VER_INFO = 1:3:0 + ## FIXME: `make distcheck' in this directory will not currently work. ## This is most likely to the explicit flags passed to submakes. @@ -98,7 +104,8 @@ endif # linuxthread semaphore functions get linked: libgc_la_LIBADD = @addobjs@ $(THREADDLLIBS) $(UNWINDLIBS) $(ATOMIC_OPS_LIBS) libgc_la_DEPENDENCIES = @addobjs@ -libgc_la_LDFLAGS = $(extra_ldflags_libgc) -version-info 1:3:0 -no-undefined +libgc_la_LDFLAGS = $(extra_ldflags_libgc) -version-info $(LIBGC_VER_INFO) \ + -no-undefined EXTRA_libgc_la_SOURCES = ia64_save_regs_in_stack.s sparc_mach_dep.S \ sparc_netbsd_mach_dep.s sparc_sunos4_mach_dep.s @@ -113,7 +120,7 @@ pkginclude_HEADERS += include/gc_cpp.h include_HEADERS += include/extra/gc_cpp.h libgccpp_la_SOURCES = gc_cpp.cc libgccpp_la_LIBADD = ./libgc.la -libgccpp_la_LDFLAGS = -version-info 1:3:0 -no-undefined +libgccpp_la_LDFLAGS = -version-info $(LIBGCCPP_VER_INFO) -no-undefined endif # FIXME: If Visual C++ users use Makefile.am, this should go into diff --git a/cord/cord.am b/cord/cord.am index 7793ec8..d05a945 100644 --- a/cord/cord.am +++ b/cord/cord.am @@ -1,8 +1,14 @@ +## This file is processed with automake. + +# Info (current:revision:age) for the Libtool versioning system. +# These numbers should be updated at most once just before the release, +# and, optionally, at most once during the development (after the release). +LIBCORD_VER_INFO = 1:3:0 lib_LTLIBRARIES += libcord.la libcord_la_LIBADD = $(top_builddir)/libgc.la -libcord_la_LDFLAGS = -version-info 1:3:0 -no-undefined +libcord_la_LDFLAGS = -version-info $(LIBCORD_VER_INFO) -no-undefined libcord_la_CPPFLAGS = $(AM_CPPFLAGS) libcord_la_SOURCES = \