forked from mia/Aegisub
Fix compiler flags
http://devel.aegisub.org/ticket/1899 http://devel.aegisub.org/ticket/1900 https://github.com/Aegisub/Aegisub/pull/29
This commit is contained in:
parent
05c0ba0e46
commit
c4e0f40370
2 changed files with 7 additions and 10 deletions
14
configure.ac
14
configure.ac
|
@ -133,20 +133,18 @@ AS_IF([test x$build_darwin != xyes], [
|
|||
AC_ARG_ENABLE(compiler-flags, AS_HELP_STRING([--disable-compiler-flags],[Disable *all* additional compiler flags. [no]]))
|
||||
|
||||
AS_IF([test x$enable_compiler_flags != xno], [
|
||||
CFLAGS="$CFLAGS -Wall -Wextra -Wno-unused-parameter -std=gnu99 -pipe -g"
|
||||
CXXFLAGS="$CXXFLAGS -Wall -Wextra -Wno-unused-parameter -fno-strict-aliasing -pipe -g"
|
||||
CFLAGS="$CFLAGS -Wall -Wextra -Wno-unused-parameter"
|
||||
CXXFLAGS="$CXXFLAGS -Wall -Wextra -Wno-unused-parameter -fno-strict-aliasing"
|
||||
AC_C_FLAG([-std=gnu99])
|
||||
AC_CXX_FLAG([-std=c++11])
|
||||
AC_CXX_FLAG([-Wno-c++11-narrowing])
|
||||
AC_CXX_FLAG([-Wno-narrowing])
|
||||
AC_C_FLAG([-Wno-unused-local-typedefs])
|
||||
AC_CXX_FLAG([-Wno-unused-local-typedefs])
|
||||
|
||||
# -O* messes with debugging.
|
||||
AS_IF([test x$enable_debug = xyes], [
|
||||
CFLAGS="$CFLAGS -O0"
|
||||
CXXFLAGS="$CXXFLAGS -O0"
|
||||
], [
|
||||
CFLAGS="$CFLAGS -O3"
|
||||
CXXFLAGS="$CXXFLAGS -O3"
|
||||
CFLAGS="$CFLAGS -O0 -g"
|
||||
CXXFLAGS="$CXXFLAGS -O0 -g"
|
||||
])
|
||||
])
|
||||
|
||||
|
|
|
@ -189,14 +189,13 @@ endif
|
|||
#####################
|
||||
# SOURCE-LEVEL CFLAGS
|
||||
#####################
|
||||
$(d)MatroskaParser.o_FLAGS := -Wno-sometimes-uninitialized
|
||||
$(d)audio_player.o_FLAGS := $(CFLAGS_ALSA) $(CFLAGS_PORTAUDIO) $(CFLAGS_LIBPULSE) $(CFLAGS_OPENAL)
|
||||
$(d)audio_provider_factory.o_FLAGS := $(CFLAGS_FFMS2)
|
||||
$(d)auto4_base.o_FLAGS := $(CFLAGS_FREETYPE)
|
||||
$(d)charset_detect.o_FLAGS := -D_X86_
|
||||
$(d)font_file_lister_fontconfig.o_FLAGS := $(CFLAGS_FONTCONFIG)
|
||||
$(d)subtitles_provider.o_FLAGS := $(CFLAGS_LIBASS)
|
||||
$(d)subtitles_provider_libass.o_FLAGS := $(CFLAGS_LIBASS) -Wno-c++11-narrowing
|
||||
$(d)subtitles_provider_libass.o_FLAGS := $(CFLAGS_LIBASS) -Wno-narrowing
|
||||
$(d)text_file_reader.o_FLAGS := -D_X86_
|
||||
$(d)video_provider_manager.o_FLAGS := $(CFLAGS_FFMS2)
|
||||
$(d)auto4_lua.o_FLAGS := $(CFLAGS_LUA)
|
||||
|
|
Loading…
Reference in a new issue