Skip to content

Commit

Permalink
Compile with -fPIC and the debug hook
Browse files Browse the repository at this point in the history
  • Loading branch information
asm committed Jul 8, 2017
1 parent ce6c056 commit 10cd349
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions build_config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@

enable_debug

# C compiler settings

# Use mrbgems
# conf.gem 'examples/mrbgems/ruby_extension_example'
# conf.gem 'examples/mrbgems/c_extension_example' do |g|
Expand All @@ -24,15 +26,15 @@
# include the default GEMs
conf.gembox 'default'
# C compiler settings
# conf.cc do |cc|
conf.cc do |cc|
# cc.command = ENV['CC'] || 'gcc'
# cc.flags = [ENV['CFLAGS'] || %w()]
cc.flags = [ENV['CFLAGS'] || %w(-g -fPIC -std=gnu99 -O3 -Wall -Werror-implicit-function-declaration -Wdeclaration-after-statement)]
# cc.include_paths = ["#{root}/include"]
# cc.defines = %w(DISABLE_GEMS)
cc.defines = %w(DISABLE_GEMS MRB_ENABLE_DEBUG_HOOK)
# cc.option_include_path = '-I%s'
# cc.option_define = '-D%s'
# cc.compile_options = "%{flags} -MMD -o %{outfile} -c %{infile}"
# end
end

# mrbc settings
# conf.mrbc do |mrbc|
Expand Down

0 comments on commit 10cd349

Please sign in to comment.