Changeset 29986 in webkit


Ignore:
Timestamp:
Feb 4, 2008 7:25:59 PM (16 years ago)
Author:
mrowe@apple.com
Message:

Fix http://bugs.webkit.org/show_bug.cgi?id=17175 (Bug 17175: Use of C++ compiler flags in CFLAGS).

Reviewed by Alp Toker and Mark Rowe.

Add global_cxxflags definition for inclusion in CXXFLAGS variables.
Only use -fno-rtti and $(SYMBOL_VISIBILITY_INLINES) with global_cxxflags as gcc complains they aren't valid for C.

Location:
trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/ChangeLog

    r29961 r29986  
     12008-02-04  Rodney Dawes  <dobey@wayofthemonkey.com>
     2
     3        Reviewed by Alp Toker and Mark Rowe.
     4
     5        Fix http://bugs.webkit.org/show_bug.cgi?id=17175.
     6        Bug 17175: Use of C++ compiler flags in CFLAGS
     7
     8        Add global_cxxflags definition for inclusion in CXXFLAGS variables.
     9        Only use -fno-rtti and $(SYMBOL_VISIBILITY_INLINES) with global_cxxflags as gcc complains they aren't valid for C.
     10
     11        * GNUmakefile.am:
     12
    1132008-02-04  Alp Toker  <alp@atoker.com>
    214
  • trunk/GNUmakefile.am

    r29961 r29986  
    2222# global_cppflags   = CPPFLAGS that apply to JSC, WebCore, and to any
    2323#                     specific port
    24 # global_cflags     = CFLAGS and CXXFLAGS that apply to JSC, WebCore, and to
     24# global_cflags     = CFLAGS that apply to JSC, WebCore, and to
    2525#                     any specific port
     26# global_cxxflags   = CXXFLAGS that apply to JSC, WebCore, and to any
     27#                     specific port
    2628
    2729srcdir = @srcdir@
     
    6264        -Wformat -Wformat-security -Wno-format-y2k -Wundef \
    6365        -Wmissing-format-attribute -Wpointer-arith -Wwrite-strings \
    64         -Wno-unused-parameter $(SYMBOL_VISIBILITY_INLINES)
     66        -Wno-unused-parameter
     67
     68global_cxxflags := \
     69        $(SYMBOL_VISIBILITY_INLINES)
    6570
    6671if !ENABLE_DEBUG
    6772global_cflags += \
    68         -fno-rtti -fno-exceptions \
     73        -fno-exceptions \
    6974        $(SYMBOL_VISIBILITY)
     75
     76global_cxxflags += \
     77        -fno-rtti
    7078endif
    7179
     
    97105libJavaScriptCore_la_LDFLAGS = $(ICU_LIBS) -lpthread
    98106
    99 libJavaScriptCore_la_CXXFLAGS = $(global_cflags) -fstrict-aliasing
     107libJavaScriptCore_la_CXXFLAGS = $(global_cxxflags) $(global_cflags) -fstrict-aliasing
    100108
    101109libJavaScriptCore_la_CFLAGS = $(global_cflags) -fstrict-aliasing
     
    140148libWebKitGtk_la_CXXFLAGS = \
    141149        -fno-strict-aliasing \
     150        $(global_cxxflags) \
    142151        $(global_cflags) \
    143152        $(DEPENDENCIES_CFLAGS) \
  • trunk/JavaScriptCore/ChangeLog

    r29961 r29986  
     12008-02-04  Rodney Dawes  <dobey@wayofthemonkey.com>
     2
     3        Reviewed by Alp Toker and Mark Rowe.
     4
     5        Fix http://bugs.webkit.org/show_bug.cgi?id=17175.
     6        Bug 17175: Use of C++ compiler flags in CFLAGS
     7
     8        * GNUmakefile.am: Use global_cxxflags as well as global_cflags in CXXFLAGS.
     9
    1102008-02-04  Alp Toker  <alp@atoker.com>
    211
     
    1827        putting things into the back/forward cache. If that's true, then this
    1928        should fix the problem.
    20        
     29
    2130        (According to Geoff's measurements, in a PLT that exaggerates the
    2231        importance of symbol table saving during cached page creation, this
  • trunk/JavaScriptCore/GNUmakefile.am

    r29961 r29986  
    150150        JavaScriptCore/API/minidom.c
    151151Programs_minidom_CPPFLAGS = $(global_cppflags)
    152 Programs_minidom_CXXFLAGS = $(global_cflags)
     152Programs_minidom_CXXFLAGS = $(global_cxxflags) $(global_cflags)
    153153Programs_minidom_LDADD = libJavaScriptCore.la
    154154Programs_minidom_LDFLAGS = -rpath $(CURDIR)/.libs
     
    157157Programs_testkjs_SOURCES = JavaScriptCore/kjs/testkjs.cpp
    158158Programs_testkjs_CPPFLAGS = $(global_cppflags)
    159 Programs_testkjs_CXXFLAGS = $(global_cflags)
     159Programs_testkjs_CXXFLAGS = $(global_cxxflags) $(global_cflags)
    160160Programs_testkjs_LDADD = libJavaScriptCore.la
    161161Programs_testkjs_LDFLAGS = -rpath $(CURDIR)/.libs
  • trunk/WebKitTools/ChangeLog

    r29963 r29986  
     12008-02-04  Rodney Dawes  <dobey@wayofthemonkey.com>
     2
     3        Reviewed by Alp Toker and Mark Rowe.
     4
     5        Fix http://bugs.webkit.org/show_bug.cgi?id=17175.
     6        Bug 17175: Use of C++ compiler flags in CFLAGS
     7
     8        * GNUmakefile.am: Use global_cxxflags as well as global_cflags in CXXFLAGS.
     9
    1102008-02-04  Darin Adler  <darin@apple.com>
    211
  • trunk/WebKitTools/GNUmakefile.am

    r29961 r29986  
    4040Programs_DumpRenderTree_CXXFLAGS = \
    4141        $(DEPENDENCIES_CFLAGS) \
     42        $(global_cxxflags) \
    4243        $(global_cflags)
    4344
Note: See TracChangeset for help on using the changeset viewer.