cryptsetup: fix compilation with musl 1.2.4
Similar to mdadm also cryptsetup now requires _LARGEFILE64_SOURCE. Add -D_LARGEFILE64_SOURCE to TARGET_CFLAGS to fix compilation. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
This commit is contained in:
parent
560f93cb25
commit
d4d58fca4b
1 changed files with 2 additions and 1 deletions
|
@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=cryptsetup
|
PKG_NAME:=cryptsetup
|
||||||
PKG_VERSION:=2.6.0
|
PKG_VERSION:=2.6.0
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=2
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
|
||||||
PKG_SOURCE_URL:=@KERNEL/linux/utils/cryptsetup/v2.6
|
PKG_SOURCE_URL:=@KERNEL/linux/utils/cryptsetup/v2.6
|
||||||
|
@ -75,6 +75,7 @@ CONFIGURE_VARS += \
|
||||||
LIBSSH_CFLAGS="-I$(STAGING_DIR)/usr/include" \
|
LIBSSH_CFLAGS="-I$(STAGING_DIR)/usr/include" \
|
||||||
LIBSSH_LIBS="-L$(STAGING_DIR)/usr/lib -lssh"
|
LIBSSH_LIBS="-L$(STAGING_DIR)/usr/lib -lssh"
|
||||||
|
|
||||||
|
TARGET_CFLAGS += -D_LARGEFILE64_SOURCE
|
||||||
TARGET_LDFLAGS += -Wl,--gc-sections $(if $(INTL_FULL),-lintl)
|
TARGET_LDFLAGS += -Wl,--gc-sections $(if $(INTL_FULL),-lintl)
|
||||||
|
|
||||||
define Build/InstallDev
|
define Build/InstallDev
|
||||||
|
|
Loading…
Reference in a new issue