unrar: use $(TARGET_MAKE_ENV) when calling $(MAKE)
Signed-off-by: Gustavo Zacarias <gustavo.zacarias@free-electrons.com> Reviewed-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
parent
eab4842c7e
commit
d796044eb1
|
@ -11,13 +11,13 @@ UNRAR_LICENSE = unrar
|
|||
UNRAR_LICENSE_FILES = license.txt
|
||||
|
||||
define UNRAR_BUILD_CMDS
|
||||
$(MAKE) CXX="$(TARGET_CXX)" STRIP="/bin/true" \
|
||||
$(TARGET_MAKE_ENV) $(MAKE) CXX="$(TARGET_CXX)" STRIP="/bin/true" \
|
||||
CXXFLAGS="$(TARGET_CXXFLAGS) -pthread" \
|
||||
LDFLAGS="$(TARGET_LDFLAGS) -pthread" -C $(@D)
|
||||
endef
|
||||
|
||||
define UNRAR_INSTALL_TARGET_CMDS
|
||||
$(MAKE) -C $(@D) DESTDIR=$(TARGET_DIR)/usr install
|
||||
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) DESTDIR=$(TARGET_DIR)/usr install
|
||||
endef
|
||||
|
||||
$(eval $(generic-package))
|
||||
|
|
Loading…
Reference in a new issue