3710b671ca
dmraid is a very old package from 2010 with an awkward configure script which doesn't honor CFLAGS: ac_cv_env_CFLAGS_set=set ac_cv_env_CFLAGS_value='-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os -g0 ' [...] ## ----------------- ## ## Output variables. ## ## ----------------- ## AWK='gawk' CC='/home/autobuild/autobuild/instance-3/output-1/host/bin/sh4a-buildroot-linux-musl-gcc' CFLAGS='-O2' resulting in the following build failure with musl >= 1.2.4 and25e6fee27f
because _LARGEFILE64_SOURCE is not set: /home/autobuild/autobuild/instance-3/output-1/host/lib/gcc/sh4a-buildroot-linux-musl/12.3.0/../../../../sh4a-buildroot-linux-musl/bin/ld: misc/file.o: in function `rw_file': file.c:(.text+0x150): undefined reference to `lseek64' To fix this issue, pass TARGET_CONFIGURE_OPTS through DMRAID_MAKE_OPTS Fixes: - http://autobuild.buildroot.org/results/5c7c82959ce92db908d3ca20e2c1137509c2f981 Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Arnout Vandecappelle <arnout@mind.be> (cherry picked from commitde6415ad9c
) Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
26 lines
779 B
Makefile
26 lines
779 B
Makefile
################################################################################
|
|
#
|
|
# dmraid
|
|
#
|
|
################################################################################
|
|
|
|
DMRAID_VERSION = 1.0.0.rc16-3
|
|
DMRAID_SOURCE = dmraid-$(DMRAID_VERSION).tar.bz2
|
|
DMRAID_SITE = http://people.redhat.com/~heinzm/sw/dmraid/src
|
|
DMRAID_SUBDIR = $(DMRAID_VERSION)/dmraid
|
|
# lib and tools race with parallel make
|
|
DMRAID_MAKE = $(MAKE1)
|
|
DMRAID_INSTALL_STAGING = YES
|
|
DMRAID_LICENSE = GPL-2.0
|
|
DMRAID_LICENSE_FILES = $(DMRAID_SUBDIR)/LICENSE_GPL $(DMRAID_SUBDIR)/LICENSE
|
|
DMRAID_MAKE_OPTS = $(TARGET_CONFIGURE_OPTS)
|
|
|
|
DMRAID_DEPENDENCIES = lvm2
|
|
|
|
define DMRAID_INSTALL_INIT_SYSV
|
|
$(INSTALL) -D -m 0755 package/dmraid/S20dmraid \
|
|
$(TARGET_DIR)/etc/init.d/S20dmraid
|
|
endef
|
|
|
|
$(eval $(autotools-package))
|