commit 3f1103ea8d6aba2aad6eee95d8a0009bd24bd337 from: Thomas Adam date: Mon Jun 24 17:28:45 2024 UTC portable: fix compilation on OpenBSD Make -portable work on OpenBSD; explicitly use -ltls, and dont't use PKG_CONFIG to check for a library which won't exist on OpenBSD. commit - a510db74fc60784c1f296b6acc484731bd3cec29 commit + 3f1103ea8d6aba2aad6eee95d8a0009bd24bd337 blob - 6a3a18faaabe47a9862b32e195875fbf9e8f139d blob + 1a04a063314fb2fb9e9b5344a346eb6e4c2dcead --- configure.ac +++ configure.ac @@ -759,7 +759,7 @@ AC_CHECK_DECL( [#include ] ) -#FIXME: May need OS-wrapping. +if test "x$PLATFORM" != "xopenbsd"; then PKG_CHECK_MODULES( LIBTLS, [libtls], @@ -771,6 +771,7 @@ PKG_CHECK_MODULES( ], AC_MSG_ERROR(["*** Couldn't find libtls ***"]) ) +fi # Look for __progname. AC_MSG_CHECKING(for __progname) blob - 074f090189c0020b1260a2ec1af10d5ffa993941 blob + 1cbc9bf79ffeb8bb5f2f5e42877dfb8c3a155986 --- gotd/libexec/got-notify-http/Makefile.am +++ gotd/libexec/got-notify-http/Makefile.am @@ -20,4 +20,8 @@ if HOST_FREEBSD LDADD += -lmd endif +if HOST_OPENBSD +LDADD += -ltls +endif + AM_CPPFLAGS += $(zlib_CFLAGS) $(libbsd_CFLAGS) $(libmd_CFLAGS) $(libtls_CFLAGS) blob - 65311c88d9aad779d8466977cc63c096f2755620 blob + 09e3108e74b8a627368a0806fae43f2eebf95708 --- libexec/got-fetch-http/Makefile.am +++ libexec/got-fetch-http/Makefile.am @@ -22,4 +22,8 @@ if HOST_FREEBSD LDADD += -lmd endif +if HOST_OPENBSD +LDADD += -ltls +endif + AM_CPPFLAGS += $(zlib_CFLAGS) $(libbsd_CFLAGS) $(libmd_CFLAGS) $(libtls_CFLAGS)