diff options
author | Damjan Marion <damarion@cisco.com> | 2017-01-08 15:34:50 +0100 |
---|---|---|
committer | Damjan Marion <damarion@cisco.com> | 2017-01-08 16:50:19 +0100 |
commit | 45a00c44d1dd893474819e88a7d7eed1c7947c4d (patch) | |
tree | cdcef90e5e59cd761caa28a924f5ad6d1459a313 /src/vlib-api.am | |
parent | f935e336db1282c1ec67cf703db2d3cfaec32915 (diff) |
Multiple Autotools improvements
- Defines some dependencies between shared libraries
- updates version.h only when version changes
Updating version.h on each "make" and "make install" was causing issues with
parallel builds. "make install" was re-linking vpp binary due to "updated"
version.h and in parallel it was re-linking shared libraries as part of
installation process. That was resulting on sporadic build failures.
Change-Id: I2a27ae1aea6a7a4100822018e095a60dd48d39ca
Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/vlib-api.am')
-rw-r--r-- | src/vlib-api.am | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/vlib-api.am b/src/vlib-api.am index 80eb760d108..128cc07a1d5 100644 --- a/src/vlib-api.am +++ b/src/vlib-api.am @@ -14,6 +14,8 @@ lib_LTLIBRARIES += libvlibapi.la libvlibmemory.la libvlibmemoryclient.la \ libvlibsocket.la +libvlibapi_la_LIBADD = libvppinfra.la +libvlibapi_la_DEPENDENCIES = libvppinfra.la libvlib.la libvlibapi_la_SOURCES = \ vlibapi/api.h \ vlibapi/api_helper_macros.h \ @@ -22,6 +24,8 @@ libvlibapi_la_SOURCES = \ nobase_include_HEADERS += vlibapi/api.h vlibapi/api_helper_macros.h +libvlibmemory_la_LIBADD = libvppinfra.la libsvm.la -lpthread +libvlibmemory_la_DEPENDENCIES = libvppinfra.la libsvm.la libvlib.la libvlibmemory_la_SOURCES = \ vlibmemory/api.h \ vlibmemory/memclnt.api \ @@ -32,6 +36,8 @@ libvlibmemory_la_SOURCES = \ vlibmemory/unix_shared_memory_queue.c \ vlibmemory/unix_shared_memory_queue.h +libvlibmemoryclient_la_LIBADD = libvppinfra.la libsvm.la -lpthread +libvlibmemoryclient_la_DEPENDENCIES = libvppinfra.la libsvm.la libvlib.la libvlibmemoryclient_la_SOURCES = \ vlibmemory/api.h \ vlibmemory/memclnt.api \ @@ -49,6 +55,8 @@ nobase_include_HEADERS += \ vlibmemory/unix_shared_memory_queue.h \ vlibmemory/memclnt.api.h +libvlibsocket_la_LIBADD = libvppinfra.la +libvlibsocket_la_DEPENDENCIES = libvppinfra.la libvlibsocket_la_SOURCES = \ vlibsocket/api.h \ vlibsocket/sockclnt.api \ |