Fix up gc/extconf_base.rb
- Add flags to appropriate variables. - Use `append_cflags` to append a flag safely, instead of appending blindly.
This commit is contained in:
parent
c5d31cb96b
commit
9a5f6a45c6
Notes:
git
2024-11-26 10:06:46 +00:00
@ -3,10 +3,11 @@
|
||||
require "mkmf"
|
||||
|
||||
srcdir = File.join(__dir__, "..")
|
||||
$CFLAGS << " -I#{srcdir}"
|
||||
$INCFLAGS << " -I#{srcdir}"
|
||||
|
||||
$CFLAGS << " -DBUILDING_SHARED_GC"
|
||||
$CFLAGS << " -fPIC"
|
||||
$CPPFLAGS << " -DBUILDING_SHARED_GC"
|
||||
|
||||
append_cflags("-fPIC")
|
||||
|
||||
def create_gc_makefile(name)
|
||||
create_makefile("librubygc.#{name}")
|
||||
|
Loading…
x
Reference in New Issue
Block a user