[MacPorts] #35389: nodejs, nodejs-devel: use MacPorts CXXFLAGS

MacPorts noreply at macports.org
Sat Jul 28 10:44:21 PDT 2012


#35389: nodejs, nodejs-devel: use MacPorts CXXFLAGS
-------------------------------------+--------------------------------------
 Reporter:  ryandesign@…             |       Owner:  ciserlohn@…           
     Type:  defect                   |      Status:  new                   
 Priority:  Low                      |   Milestone:                        
Component:  ports                    |     Version:  2.1.2                 
 Keywords:  haspatch                 |        Port:  nodejs, nodejs-devel  
-------------------------------------+--------------------------------------
 Currently the nodejs and nodejs-devel portfiles pass CFLAGS to the build
 phase but not CXXFLAGS. node defaults to building with -O3, while MacPorts
 CFLAGS and CXXFLAGS contain ${configure.optflags} which defaults to -O2.
 The upshot of this combination of facts is that the C parts of node are
 getting built with -O2 while the CXX parts are getting built with -O3.
 This difference was probably not intended.

 I propose the attached patch to pass CXXFLAGS as well. This way everything
 will be built with MacPorts default -O2. If a different optimization
 setting is desired, configure.optflags can additionally be set.

-- 
Ticket URL: <https://trac.macports.org/ticket/35389>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list