mirror of
https://github.com/PartialVolume/shredos.x86_64.git
synced 2026-03-14 14:42:12 +00:00
GCC 6 defaults to -std=gnu++14 instead of -std=gnu++98. The C++11 standard does
not allow "narrowing conversions" which is why building fdk-aac with GCC 6
fails:
libAACenc/src/aacEnc_rom.cpp:661:1: error: narrowing conversion of '2180108801u' from 'unsigned int' to 'FIXP_DBL {aka long int}' inside { } [-Wnarrowing]
Use '-std=gnu++98' as suggested by "Porting to GCC 6" [1].
[1] https://gcc.gnu.org/gcc-6/porting_to.html
Signed-off-by: Jörg Krause <joerg.krause@embedded.rocks>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
18 lines
522 B
Makefile
18 lines
522 B
Makefile
################################################################################
|
|
#
|
|
# fdk-aac
|
|
#
|
|
################################################################################
|
|
|
|
FDK_AAC_VERSION = 0.1.4
|
|
FDK_AAC_SITE = http://downloads.sourceforge.net/project/opencore-amr/fdk-aac
|
|
FDK_AAC_LICENSE = fdk-aac license
|
|
FDK_AAC_LICENSE_FILES = NOTICE
|
|
|
|
FDK_AAC_INSTALL_STAGING = YES
|
|
|
|
# Not compatible with GCC 6 which defaults to GNU++14
|
|
FDK_AAC_CONF_ENV += CXXFLAGS="$(TARGET_CXXFLAGS) -std=gnu++98"
|
|
|
|
$(eval $(autotools-package))
|