Changeset 156462 in webkit
- Timestamp:
- Sep 26, 2013 9:36:22 AM (11 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ChangeLog
r156395 r156462 1 2013-09-26 Gustavo Noronha Silva <gustavo.noronha@collabora.com> 2 3 [GTK] Tons of warnings caused by using FORTIFY_SOURCE in an unoptimized build 4 https://bugs.webkit.org/show_bug.cgi?id=121836 5 6 Reviewed by Martin Robinson. 7 8 * Source/autotools/SetupCompilerFlags.m4: only consider enabling FORTIFY_SOURCE if optimizations have 9 been enabled, since they are required for FORTIFY_SOURCE to work, and enabling FORTIFY_SOURCE unconditionally 10 generates warnings in newer glibc. 11 1 12 2013-09-25 Allan Sandfeld Jensen <allan.jensen@digia.com> 2 13 -
trunk/Source/autotools/SetupCompilerFlags.m4
r154008 r156462 14 14 if test "$cxx_compiler" = "clang++"; then 15 15 CXXFLAGS="$CXXFLAGS -stdlib=libstdc++ -Wno-c++11-extensions -Qunused-arguments" 16 fi17 18 if test "$c_compiler" = "gcc"; then19 CFLAGS="$CFLAGS -D_FORTIFY_SOURCE=2"20 fi21 if test "$cxx_compiler" = "g++"; then22 CXXFLAGS="$CXXFLAGS -D_FORTIFY_SOURCE=2"23 16 fi 24 17 … … 41 34 CXXFLAGS="$CXXFLAGS -O2" 42 35 CFLAGS="$CFLAGS -O2" 36 37 if test "$c_compiler" = "gcc"; then 38 CFLAGS="$CFLAGS -D_FORTIFY_SOURCE=2" 39 fi 40 if test "$cxx_compiler" = "g++"; then 41 CXXFLAGS="$CXXFLAGS -D_FORTIFY_SOURCE=2" 42 fi 43 43 else 44 44 CXXFLAGS="$CXXFLAGS -O0"
Note: See TracChangeset
for help on using the changeset viewer.