Skip to content

Commit 30ba344

Browse files
authored
lz4: Migrate to using meson and fix Debug build with gcc <= 4.9.x (#6727)
1 parent 9406e5e commit 30ba344

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

cross/lz4/Makefile

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,26 @@ PKG_EXT = tar.gz
44
PKG_DIST_NAME = v$(PKG_VERS).$(PKG_EXT)
55
PKG_DIST_SITE = https://github.com/lz4/lz4/archive
66
PKG_DIST_FILE = $(PKG_NAME)-$(PKG_VERS).$(PKG_EXT)
7-
PKG_DIR = $(PKG_NAME)-$(PKG_VERS)/build/cmake
7+
PKG_DIR = $(PKG_NAME)-$(PKG_VERS)
88

99
DEPENDS =
1010

1111
HOMEPAGE = https://github.com/lz4/lz4
1212
COMMENT = LZ4 is lossless compression algorithm, providing compression speed at 400 MB/s per core, scalable with multi-cores CPU.
1313
LICENSE = BSD
1414

15-
include ../../mk/spksrc.cross-cmake.mk
15+
MESON_BASE_DIR = $(WORK_DIR)/$(PKG_DIR)/build/meson
16+
17+
include ../../mk/spksrc.common.mk
1618

17-
include ../../mk/spksrc.archs.mk
1819
ifeq ($(findstring $(ARCH),$(ARMv5_ARCHS) $(OLD_PPC_ARCHS)),$(ARCH))
1920
ADDITIONAL_LDFLAGS += -lrt
2021
endif
22+
23+
ifeq ($(GCC_DEBUG_INFO),1)
24+
ifeq ($(call version_lt, $(TC_GCC), 5.0),1)
25+
ADDITIONAL_CFLAGS = -std=c99
26+
endif
27+
endif
28+
29+
include ../../mk/spksrc.cross-meson.mk

0 commit comments

Comments
 (0)