Zap zoom zoom (-O3)

prompted by zthen@
This commit is contained in:
jasper 2011-04-29 07:41:15 +00:00
parent e1094de897
commit 888cb1b180
3 changed files with 27 additions and 6 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.11 2011/04/28 22:02:44 jasper Exp $
# $OpenBSD: Makefile,v 1.12 2011/04/29 07:41:15 jasper Exp $
# XXX:
# - Needs __ARM_NR_cacheflush (or the like) to work on arm-based ports.
@ -10,6 +10,7 @@ COMMENT= V8 JavaScript for clients and servers
DISTNAME= node-v0.4.7
PKGNAME= ${DISTNAME:S/v//g}
REVISION= 0
CATEGORIES= www devel

View File

@ -1,9 +1,19 @@
$OpenBSD: patch-deps_v8_SConstruct,v 1.4 2011/04/12 10:32:49 jasper Exp $
$OpenBSD: patch-deps_v8_SConstruct,v 1.5 2011/04/29 07:41:15 jasper Exp $
- Remove extra zoom-zoom!
- Don't link with -lpthread but use -pthread instead.
--- deps/v8/SConstruct.orig Tue Apr 12 10:05:56 2011
+++ deps/v8/SConstruct Tue Apr 12 10:06:54 2011
--- deps/v8/SConstruct.orig Sat Apr 23 02:06:25 2011
+++ deps/v8/SConstruct Fri Apr 29 00:07:18 2011
@@ -154,7 +154,7 @@ LIBRARY_FLAGS = {
}
},
'mode:release': {
- 'CCFLAGS': ['-O3', '-fomit-frame-pointer', '-fdata-sections',
+ 'CCFLAGS': ['-fomit-frame-pointer', '-fdata-sections',
'-ffunction-sections'],
'os:android': {
'CCFLAGS': ['-mthumb', '-Os'],
@@ -368,7 +368,8 @@ MKSNAPSHOT_EXTRA_FLAGS = {
'LINKFLAGS': ['-mt']
},

View File

@ -1,12 +1,13 @@
$OpenBSD: patch-wscript,v 1.5 2011/04/28 22:02:44 jasper Exp $
$OpenBSD: patch-wscript,v 1.6 2011/04/29 07:41:15 jasper Exp $
- OpenBSD can also use libexecinfo.
- Don't append EV_MULTIPLICITY_EV was it breaks the build with using the
shared libev with an undefined reference to ev_rt_now.
- Don't build with -O3.
- Adjust some paths.
--- wscript.orig Sat Apr 23 02:06:25 2011
+++ wscript Thu Apr 28 23:02:42 2011
+++ wscript Fri Apr 29 09:34:30 2011
@@ -280,7 +280,7 @@ def configure(conf):
if Options.options.efence:
conf.check(lib='efence', libpath=['/usr/lib', '/usr/local/lib'], uselib_store='EFENCE')
@ -28,6 +29,15 @@ $OpenBSD: patch-wscript,v 1.5 2011/04/28 22:02:44 jasper Exp $
# Makes select on windows support more than 64 FDs
if sys.platform.startswith("win32"):
conf.env.append_value('CPPFLAGS', '-DFD_SETSIZE=1024');
@@ -533,7 +535,7 @@ def configure(conf):
# Configure default variant
conf.setenv('default')
conf.env.append_value('CPPFLAGS', '-DNDEBUG')
- default_compile_flags = ['-g', '-O3']
+ default_compile_flags = ['-g']
conf.env.append_value('CCFLAGS', default_compile_flags)
conf.env.append_value('CXXFLAGS', default_compile_flags)
conf.write_config_header("config.h")
@@ -908,11 +910,10 @@ def build(bld):
# Only install the man page if it exists.
# Do 'make doc install' to build and install it.