On Sun, Nov 10, 2019 at 04:30:10PM +0000, Stuart Henderson wrote:

> > Here is a diff to update mruby to 2.0.1.
> 
> OK for the update.
> 
> Not new, but it overrides CFLAGS by adding -g3 -O0 ..

Indeed, thanks for pointing this out. The following diff should fix this.

Comments? OK?

Index: Makefile
===================================================================
RCS file: /cvs/ports/lang/mruby/Makefile,v
retrieving revision 1.14
diff -u -p -r1.14 Makefile
--- Makefile    11 Nov 2019 11:42:36 -0000      1.14
+++ Makefile    11 Nov 2019 19:59:56 -0000
@@ -5,6 +5,7 @@ COMMENT =               lightweight, embeddable imple
 GH_ACCOUNT =           mruby
 GH_PROJECT =           mruby
 GH_TAGNAME =           2.0.1
+REVISION =             0
 
 CATEGORIES =           lang
 HOMEPAGE =             https://mruby.org/
Index: patches/patch-build_config_rb
===================================================================
RCS file: patches/patch-build_config_rb
diff -N patches/patch-build_config_rb
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ patches/patch-build_config_rb       11 Nov 2019 19:59:56 -0000
@@ -0,0 +1,25 @@
+$OpenBSD$
+
+Avoid adding "-g3 -O0" to CFLAGS.
+
+Index: build_config.rb
+--- build_config.rb.orig
++++ build_config.rb
+@@ -95,7 +95,7 @@ MRuby::Build.new('host-debug') do |conf|
+     toolchain :gcc
+   end
+ 
+-  enable_debug
++  # enable_debug
+ 
+   # include the default GEMs
+   conf.gembox 'default'
+@@ -118,7 +118,7 @@ MRuby::Build.new('test') do |conf|
+     toolchain :gcc
+   end
+ 
+-  enable_debug
++  # enable_debug
+   conf.enable_bintest
+   conf.enable_test
+ 

Reply via email to