[libosmocore PATCH 04/12] build: use BUILT_SOURCES for the generated source files.

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/OpenBSC@lists.osmocom.org/.

Diego Elio Pettenò flameeyes at flameeyes.eu
Fri Jun 29 20:01:21 UTC 2012


This avoids possible race conditions on heavily multi-core systems.

Signed-off-by: Diego Elio Pettenò <flameeyes at 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)
-- 
1.7.8.6





More information about the OpenBSC mailing list