f20f59c4cc
With Microblaze Gcc version < 8.x the build hangs due to bug 85180: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85180. The bug shows up when building chocolate-doom with optimization but not when building with -O0. To work around this bug, if BR2_TOOLCHAIN_HAS_GCC_BUG_85180=y, we force using -O0. Fixes: http://autobuild.buildroot.net/results/e570839576be8963dc6bd36342e2f857da3c6146/ Signed-off-by: Giulio Benetti <giulio.benetti@micronovasrl.com> [Thomas: tweak CFLAGS logic, improve commit log] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
47 lines
1.3 KiB
Makefile
47 lines
1.3 KiB
Makefile
################################################################################
|
|
#
|
|
# chocolate-doom
|
|
#
|
|
################################################################################
|
|
|
|
CHOCOLATE_DOOM_VERSION = 2.3.0
|
|
CHOCOLATE_DOOM_SITE = http://www.chocolate-doom.org/downloads/$(CHOCOLATE_DOOM_VERSION)
|
|
CHOCOLATE_DOOM_LICENSE = GPL-2.0+
|
|
CHOCOLATE_DOOM_LICENSE_FILES = COPYING
|
|
CHOCOLATE_DOOM_DEPENDENCIES = host-pkgconf sdl sdl_mixer sdl_net
|
|
|
|
# We're patching configure.ac, so we need to autoreconf
|
|
CHOCOLATE_DOOM_AUTORECONF = YES
|
|
|
|
# Avoid installing desktop entries, icons, etc.
|
|
CHOCOLATE_DOOM_INSTALL_TARGET_OPTS = DESTDIR=$(TARGET_DIR) install-exec
|
|
|
|
CHOCOLATE_DOOM_CONF_OPTS = \
|
|
--disable-sdltest \
|
|
--with-sdl-prefix=$(STAGING_DIR)/usr \
|
|
--with-sdl-exec-prefix=$(STAGING_DIR)/usr
|
|
|
|
CHOCOLATE_DOOM_CFLAGS = $(TARGET_CFLAGS)
|
|
|
|
ifeq ($(BR2_TOOLCHAIN_HAS_GCC_BUG_85180),y)
|
|
CHOCOLATE_DOOM_CFLAGS += -O0
|
|
endif
|
|
|
|
CHOCOLATE_DOOM_CONF_ENV += CFLAGS="$(CHOCOLATE_DOOM_CFLAGS)"
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBPNG),y)
|
|
CHOCOLATE_DOOM_DEPENDENCIES += libpng
|
|
CHOCOLATE_DOOM_CONF_OPTS += --with-libpng
|
|
else
|
|
CHOCOLATE_DOOM_CONF_OPTS += --without-libpng
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBSAMPLERATE),y)
|
|
CHOCOLATE_DOOM_DEPENDENCIES += libsamplerate
|
|
CHOCOLATE_DOOM_CONF_OPTS += --with-libsamplerate
|
|
else
|
|
CHOCOLATE_DOOM_CONF_OPTS += --without-libsamplerate
|
|
endif
|
|
|
|
$(eval $(autotools-package))
|