Skip to content

Instantly share code, notes, and snippets.

@yano3
Created December 26, 2016 10:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yano3/67a3d61350a3e492643337548d0bfeb4 to your computer and use it in GitHub Desktop.
Save yano3/67a3d61350a3e492643337548d0bfeb4 to your computer and use it in GitHub Desktop.
diff --git a/build_config.rb b/build_config.rb
index 13751f2..9faddba 100644
--- a/build_config.rb
+++ b/build_config.rb
@@ -8,6 +8,10 @@ MRuby::Build.new('host') do |conf|
cc.flags << ENV['NGX_MRUBY_CFLAGS'] if ENV['NGX_MRUBY_CFLAGS']
end
+ conf.linker do |linker|
+ linker.option_library << ' -lstdc++'
+ end
+
#
# Recommended for ngx_mruby
#
@@ -27,6 +31,7 @@ MRuby::Build.new('host') do |conf|
conf.gem :github => 'matsumoto-r/mruby-uname'
conf.gem :github => 'matsumoto-r/mruby-mutex'
conf.gem :github => 'matsumoto-r/mruby-localmemcache'
+ conf.gem :github => 'kjunichi/mruby-mrmagick'
# ngx_mruby extended class
conf.gem './mrbgems/ngx_mruby_mrblib'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment