mirror of
https://github.com/FunKey-Project/FunKey-OS.git
synced 2026-03-26 05:42:40 +01:00
Made FunKey packages CFLAGS consistent
This commit is contained in:
@@ -15,15 +15,28 @@ MEDNAFEN_LICENSE_FILES = COPYING
|
||||
|
||||
MEDNAFEN_DEPENDENCIES = sdl sdl_image sdl_mixer sdl_ttf zlib
|
||||
|
||||
MEDNAFEN_CFLAGS = $(TARGET_CFLAGS) -ggdb -O3 -ftree-vectorize
|
||||
ifeq ($(BR2_PACKAGE_MEDNAFEN_FAST),y)
|
||||
MEDNAFEN_CFLAGS += -ffast-math -funsafe-math-optimizations
|
||||
MEDNAFEN_CFLAGS = $(TARGET_CFLAGS)
|
||||
|
||||
ifeq ($(BR2_ARM_CPU_ARMV7A),y)
|
||||
MEDNAFEN_CFLAGS += -march=armv7-a
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_GCC_TARGET_CPU),"cortex-a7")
|
||||
MEDNAFEN_CFLAGS += -mtune=cortex-a7
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_GCC_TARGET_FLOAT_ABI),"hard")
|
||||
MEDNAFEN_CFLAGS += -mfloat-abi=hard -ffast-math -funsafe-math-optimizations
|
||||
else ifeq ($(BR2_GCC_TARGET_FLOAT_ABI),"soft")
|
||||
MEDNAFEN_CFLAGS += -mfloat-abi=soft -ffast-math -funsafe-math-optimizations
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_ARM_CPU_HAS_NEON),y)
|
||||
MEDNAFEN_CFLAGS += -D__ARM_NEON__ -mfpu=neon -mvectorize-with-neon-quad
|
||||
endif
|
||||
|
||||
MEDNAFEN_CFLAGS += -ggdb -O3
|
||||
|
||||
MEDNAFEN_CONF_OPTS += CFLAGS="$(MEDNAFEN_CFLAGS)"
|
||||
MEDNAFEN_CONF_OPTS += --prefix=/usr/local --bindir=/usr/games --without-libsndfile
|
||||
|
||||
|
||||
Reference in New Issue
Block a user