Force libflac to never be optimized in a more portable way (nw)

This commit is contained in:
R. Belmont 2013-07-25 13:41:15 +00:00
parent 37ff34491c
commit bb8d90c0fa
2 changed files with 2 additions and 2 deletions

View File

@ -327,7 +327,7 @@ else
ARCHFLAGS = -DWORDS_BIGENDIAN=0
endif
FLACOPTS=-DFLAC__NO_ASM -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DHAVE_CONFIG_H=0 -DFLAC__HAS_OGG=0 -Wno-unused-function $(ARCHFLAGS)
FLACOPTS=-DFLAC__NO_ASM -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DHAVE_CONFIG_H=0 -DFLAC__HAS_OGG=0 -Wno-unused-function $(ARCHFLAGS) -O0
LIBFLACOBJS = \
$(LIBOBJ)/libflac/bitmath.o \

View File

@ -60,7 +60,7 @@ void FLAC__lpc_window_data(const FLAC__int32 in[], const FLAC__real window[], FL
out[i] = in[i] * window[i];
}
#if defined(__GNUC__) && defined(__i386__)
#if defined(__GNUC__) && defined(__i386__) && (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)
__attribute__((optimize("O0")))
#endif
void FLAC__lpc_compute_autocorrelation(const FLAC__real data[], unsigned data_len, unsigned lag, FLAC__real autoc[])