summaryrefslogtreecommitdiff
path: root/lib/bundler/templates/newgem/ext/newgem/extconf-c.rb.tt
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2023-03-27 11:50:32 +0900
committergit <svn-admin@ruby-lang.org>2023-03-27 09:47:20 +0000
commit36254c5ddf1b1b16fe5f1705227713ee7529b2f5 (patch)
tree5b292d83c2c23238b1bd6fcc8a592cdae2a56567 /lib/bundler/templates/newgem/ext/newgem/extconf-c.rb.tt
parent3eea85963b35ae17d22030d8dbed1820f1d4a6a5 (diff)
[rubygems/rubygems] Use append_cflags instead of directly append for CFLAGS
https://github.com/rubygems/rubygems/commit/61ec0c8389
Diffstat (limited to 'lib/bundler/templates/newgem/ext/newgem/extconf-c.rb.tt')
-rw-r--r--lib/bundler/templates/newgem/ext/newgem/extconf-c.rb.tt2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bundler/templates/newgem/ext/newgem/extconf-c.rb.tt b/lib/bundler/templates/newgem/ext/newgem/extconf-c.rb.tt
index 49764e9931..0a0c5a3d09 100644
--- a/lib/bundler/templates/newgem/ext/newgem/extconf-c.rb.tt
+++ b/lib/bundler/templates/newgem/ext/newgem/extconf-c.rb.tt
@@ -5,6 +5,6 @@ require "mkmf"
# Makes all symbols private by default to avoid unintended conflict
# with other gems. To explicitly export symbols you can use RUBY_FUNC_EXPORTED
# selectively, or entirely remove this flag.
-$CFLAGS << " -fvisibility=hidden "
+append_cflags("-fvisibility=hidden")
create_makefile(<%= config[:makefile_path].inspect %>)