mirror of
https://github.com/openwrt/openwrt.git
synced 2025-01-21 20:08:24 +00:00
perf: fix building with musl when NLS is enabled
This package fails with a strange error when building with musl when NLS is enabled. The configuration thinks that libelf is not present, even though DEPENDS contains +libelf, because when NLS is enabled, libelf.so depends on libintl, and the correct LDFLAGS are missing for libintl-full. This then causes the configuration script to check for glibc, but this fails because we are using musl. Signed-off-by: Marek Behún <kabel@blackhole.sk> Signed-off-by: maurerr <mariusd84@gmail.com>
This commit is contained in:
parent
7f9252a592
commit
0251eaa33a
@ -22,6 +22,7 @@ PKG_FLAGS:=nonshared
|
|||||||
PKG_BUILD_DIR:=$(LINUX_DIR)/tools/perf-$(TARGET_DIR_NAME)
|
PKG_BUILD_DIR:=$(LINUX_DIR)/tools/perf-$(TARGET_DIR_NAME)
|
||||||
|
|
||||||
include $(INCLUDE_DIR)/package.mk
|
include $(INCLUDE_DIR)/package.mk
|
||||||
|
include $(INCLUDE_DIR)/nls.mk
|
||||||
|
|
||||||
define Package/perf
|
define Package/perf
|
||||||
SECTION:=devel
|
SECTION:=devel
|
||||||
@ -38,6 +39,8 @@ endef
|
|||||||
|
|
||||||
HOST_CFLAGS += -I$(LINUX_DIR)/tools/include
|
HOST_CFLAGS += -I$(LINUX_DIR)/tools/include
|
||||||
|
|
||||||
|
TARGET_LDFLAGS += $(INTL_LDFLAGS)
|
||||||
|
|
||||||
MAKE_FLAGS = \
|
MAKE_FLAGS = \
|
||||||
ARCH="$(LINUX_KARCH)" \
|
ARCH="$(LINUX_KARCH)" \
|
||||||
NO_LIBPERL=1 \
|
NO_LIBPERL=1 \
|
||||||
|
Loading…
Reference in New Issue
Block a user