openbsd-ports/lang/mruby/patches/patch-tasks_toolchains_gcc_rake
fcambus 5cd30014c0 Update mruby to 2.0.1.
Notable changes:

- Switch to using GH_ directives to fetch the distfile
- Point HOMEPAGE to https://mruby.org/
- Upstream now enable setting MRB_ENDIAN_BIG on big endian architectures,
  so we only need to add the missing <endian.h> header

Tested on amd64, test suite passes without errors.

OK sthen@, jeremy@
2019-11-11 11:42:36 +00:00

15 lines
779 B
Plaintext

$OpenBSD: patch-tasks_toolchains_gcc_rake,v 1.3 2019/11/11 11:42:36 fcambus Exp $
Index: tasks/toolchains/gcc.rake
--- tasks/toolchains/gcc.rake.orig
+++ tasks/toolchains/gcc.rake
@@ -1,7 +1,7 @@
MRuby::Toolchain.new(:gcc) do |conf, _params|
[conf.cc, conf.objc, conf.asm].each do |cc|
cc.command = ENV['CC'] || 'gcc'
- cc.flags = [ENV['CFLAGS'] || %w(-g -std=gnu99 -O3 -Wall -Werror-implicit-function-declaration -Wdeclaration-after-statement -Wwrite-strings -Wundef)]
+ cc.flags = [ENV['CFLAGS'] || '-g -O3'] + %w(-std=gnu99 -Wall -Werror-implicit-function-declaration -Wdeclaration-after-statement -Wwrite-strings -Wundef)
cc.option_include_path = '-I%s'
cc.option_define = '-D%s'
cc.compile_options = '%{flags} -MMD -o %{outfile} -c %{infile}'