examples/Makefile.am
author psykose <alice@ayaya.dev>
Thu, 21 Apr 2022 20:23:32 +0200
changeset 744 4ebe32453682
parent 630 59a326ef98c2
permissions -rw-r--r--
fix macro define for freeaddrinfo with asyncns previously, this define was only made in lm-asyncns-resolver.c, which does not propagate it to lm-resolver.c, where freeaddrinfo() is used. this means that when asyncns support is used, the standard libc freeaddrinfo() is called on an addrinfo acquired from asyncns_getaddrinfo, which is undefined behaviour, and leads to a segfault on musl libc.

include $(top_srcdir)/build/Makefile.am.lm

AM_CPPFLAGS =                                       \
    -I$(top_srcdir)                                 \
    $(LOUDMOUTH_CFLAGS)

noinst_PROGRAMS =                                   \
    test-lm                                         \
    test-http-proxy                                 \
    test-tunnel                                     \
    lm-send-async                                   \
    lm-change-password                              \
    lm-register

test_lm_SOURCES = test-lm.c

test_http_proxy_SOURCES = test-http-proxy.c

test_tunnel_SOURCES = test-tunnel.c

lm_send_async_SOURCES = lm-send-async.c

lm_change_password_SOURCES = lm-change-password.c

lm_register_SOURCES = lm-register.c

LDADD =                                             \
    $(LOUDMOUTH_LIBS)                               \
    $(top_builddir)/loudmouth/libloudmouth-1.la