Skip to content

Commit e838a98

Browse files
committed
depends: re-enable using -flto when building expat
1 parent 3044525 commit e838a98

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

depends/packages/expat.mk

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,15 @@ $(package)_download_path=https://github.com/libexpat/libexpat/releases/download/
44
$(package)_file_name=$(package)-$($(package)_version).tar.xz
55
$(package)_sha256_hash=f79b8f904b749e3e0d20afeadecf8249c55b2e32d4ebb089ae378df479dcaf25
66

7+
# -D_DEFAULT_SOURCE defines __USE_MISC, which exposes additional
8+
# definitions in endian.h, which are required for a working
9+
# endianess check in configure when building with -flto.
710
define $(package)_set_vars
811
$(package)_config_opts=--disable-shared --without-docbook --without-tests --without-examples
912
$(package)_config_opts += --disable-dependency-tracking --enable-option-checking
1013
$(package)_config_opts += --without-xmlwf
1114
$(package)_config_opts_linux=--with-pic
12-
$(package)_cflags += -fno-lto
15+
$(package)_cppflags += -D_DEFAULT_SOURCE
1316
endef
1417

1518
define $(package)_config_cmds

0 commit comments

Comments
 (0)