This avoids possible race conditions on heavily multi-core systems.
Signed-off-by: Diego Elio Pettenò flameeyes@flameeyes.eu --- src/Makefile.am | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/Makefile.am b/src/Makefile.am index 36f95ee..6540098 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -17,6 +17,8 @@ libosmocore_la_SOURCES = timer.c select.c signal.c msgb.c bits.c \ conv.c application.c rbtree.c \ crc8gen.c crc16gen.c crc32gen.c crc64gen.c
+BUILT_SOURCES = crc8gen.c crc16gen.c crc32gen.c crc64gen.c + if ENABLE_PLUGIN libosmocore_la_SOURCES += plugin.c libosmocore_la_LDFLAGS = -version-info $(LIBVERSION) $(LIBRARY_DL)