97f8cc355b
The matio package exhibits gcc bug 99410 when built for the Nios2 architecture with optimization enabled, which causes a build failure. As done for other packages in Buildroot work around this gcc bug by setting optimization to -O0 if BR2_TOOLCHAIN_HAS_GCC_BUG_99410=y. Fixes: http://autobuild.buildroot.net/results/971/9714160b80a0d1a01983d29af38a95049c07b4d3/ Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com> Signed-off-by: Arnout Vandecappelle <arnout@mind.be>
30 lines
779 B
Makefile
30 lines
779 B
Makefile
################################################################################
|
|
#
|
|
# matio
|
|
#
|
|
################################################################################
|
|
|
|
MATIO_VERSION = 1.5.23
|
|
MATIO_SITE = http://downloads.sourceforge.net/project/matio/matio/$(MATIO_VERSION)
|
|
MATIO_LICENSE = BSD-2-Clause
|
|
MATIO_LICENSE_FILES = COPYING
|
|
MATIO_CPE_ID_VENDOR = matio_project
|
|
MATIO_DEPENDENCIES = zlib
|
|
MATIO_INSTALL_STAGING = YES
|
|
|
|
# va_copy()
|
|
MATIO_CONF_ENV = ac_cv_va_copy=yes
|
|
|
|
MATIO_CFLAGS = $(TARGET_CFLAGS)
|
|
|
|
ifeq ($(BR2_TOOLCHAIN_HAS_GCC_BUG_99410),y)
|
|
MATIO_CFLAGS += -O0
|
|
endif
|
|
|
|
MATIO_CONF_ENV += CFLAGS="$(MATIO_CFLAGS)"
|
|
|
|
# mat73 require hdf5 (not available), extented-sparse take 2KB
|
|
MATIO_CONF_OPTS = --disable-mat73 --enable-extended-sparse
|
|
|
|
$(eval $(autotools-package))
|