Fix all UBSAN warnings triggered by tests.
[tinc] / src / Makefile.am
index 4b266a7..e0733be 100644 (file)
@@ -41,6 +41,12 @@ chacha_poly1305_SOURCES = \
        chacha-poly1305/chacha-poly1305.c chacha-poly1305/chacha-poly1305.h \
        chacha-poly1305/poly1305.c chacha-poly1305/poly1305.h
 
+if CONFIGURE_LZ4_BUILTIN
+lz4_SOURCES = lib/lz4/lz4.c lib/lz4/lz4.h
+else
+lz4_SOURCES =
+endif
+
 tincd_SOURCES = \
        address_cache.c address_cache.h \
        autoconnect.c autoconnect.h \
@@ -103,7 +109,8 @@ tincd_SOURCES = \
        ed25519/ecdh.c \
        ed25519/ecdsa.c \
        $(ed25519_SOURCES) \
-       $(chacha_poly1305_SOURCES)
+       $(chacha_poly1305_SOURCES) \
+       $(lz4_SOURCES)
 
 tinc_SOURCES = \
        dropin.c dropin.h \