Skip to content

Commit d44626a

Browse files
committed
depends: Override default build type for libevent
The `libevent` package defaults to the "Release" build type, which overrides our per-build-type optimization flags with `-O3`. To prevent this behavior, set `CMAKE_BUILD_TYPE` to "None", consistent with how other packages are handled.
1 parent d7f56cc commit d44626a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

depends/packages/libevent.mk

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,10 @@ $(package)_build_subdir=build
1010
# version as we do in releases. Due to quirks in libevents build system, this
1111
# is also required to enable support for ipv6. See #19375.
1212
define $(package)_set_vars
13-
$(package)_config_opts=-DEVENT__DISABLE_BENCHMARK=ON -DEVENT__DISABLE_OPENSSL=ON
13+
$(package)_config_opts=-DCMAKE_BUILD_TYPE=None -DEVENT__DISABLE_BENCHMARK=ON -DEVENT__DISABLE_OPENSSL=ON
1414
$(package)_config_opts+=-DEVENT__DISABLE_SAMPLES=ON -DEVENT__DISABLE_REGRESS=ON
1515
$(package)_config_opts+=-DEVENT__DISABLE_TESTS=ON -DEVENT__LIBRARY_TYPE=STATIC
16+
$(package)_cflags += -ffile-prefix-map=$($(package)_extract_dir)=/usr
1617
$(package)_cppflags += -D_GNU_SOURCE
1718
$(package)_cppflags_mingw32=-D_WIN32_WINNT=0x0A00
1819

0 commit comments

Comments
 (0)