libevent
Prepare
Section titled “Prepare”- Might require patching for
cmakeversion4+, also use-DCMAKE_POLICY_VERSION_MINIMUM=3.5
Prepare
Section titled “Prepare”cmakeis now the default build system andautoconfhas been deprecated as of2.2
Configure
Section titled “Configure”clangis able to buildlibeventwithltowhen-DEVENT__ENABLE_GCC_HARDENING=ONunlikegcc- Use
-DEVENT__DISABLE_OPENSSL=ONand-DEVENT__DISABLE_THREAD_SUPPORT=ONas nothing links against or loadslibevent_openssl.soandlibevent_pthreads.so -DEVENT__DISABLE_MM_REPLACEMENT=ONforces all memory management throughmusl’s default allocator and prevents the use of custom allocators- Do not set
-DEVENT__FORCE_KQUEUE_CHECK=ONas we are not cross-compilinglibevent - Enable
ltofor all compilers with-DCMAKE_POLICY_DEFAULT_CMP0069=NEW EVENT__DOXYGENisOFFby default- Use
-DEVENT__DISABLE_REGRESS=ONto skipregress_ssl.candregress_http.cthat are known to fail due to incompatibilities - Use
-DEVENT__LIBRARY_TYPE=SHAREDand not-DBUILD_SHARED_LIBS=ON - Use
-DEVENT__LIBRARY_TYPE=SHAREDand not-DEVENT_LIBRARY_TYPE=SHAREDas the latter is only used internally
Package
Section titled “Package”- Remove
bin/event_rpcgen.pyas it is for development purposes only
gotandtmux(both fromopenbsd) only depend onlibevent_core.so(according tollvm-readelf -d)