diff --git a/general/package/libevent-openipc/0001-libevent-mbedtls.patch b/general/package/libevent-openipc/crutch/0001-libevent-mbedtls.patch similarity index 100% rename from general/package/libevent-openipc/0001-libevent-mbedtls.patch rename to general/package/libevent-openipc/crutch/0001-libevent-mbedtls.patch diff --git a/general/package/libevent-openipc/libevent-openipc.mk b/general/package/libevent-openipc/libevent-openipc.mk index 402638f1..7c9150b6 100644 --- a/general/package/libevent-openipc/libevent-openipc.mk +++ b/general/package/libevent-openipc/libevent-openipc.mk @@ -14,10 +14,20 @@ LIBEVENT_OPENIPC_LICENSE_FILES = LICENSE # their special autogen.sh script, and have custom target and staging # installation commands. +define LIBEVENT_OPENIPC_RUN_CRUTCH + cd $(@D) && patch -i $(TOPDIR)/../general/package/libevent-openipc/crutch/0001-libevent-mbedtls.patch +endef + define LIBEVENT_OPENIPC_RUN_AUTOGEN cd $(@D) && PATH=$(BR_PATH) ./autogen.sh endef + +ifeq ($(BR2_TOOLCHAIN_BUILDROOT_MUSL),y) +LIBEVENT_OPENIPC_PRE_CONFIGURE_HOOKS += LIBEVENT_OPENIPC_RUN_CRUTCH LIBEVENT_OPENIPC_RUN_AUTOGEN +else LIBEVENT_OPENIPC_PRE_CONFIGURE_HOOKS += LIBEVENT_OPENIPC_RUN_AUTOGEN +endif + LIBEVENT_OPENIPC_CONF_OPTS = \ --disable-libevent-regress \