diff options
| author | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2023-03-27 11:50:32 +0900 |
|---|---|---|
| committer | git <svn-admin@ruby-lang.org> | 2023-03-27 09:47:20 +0000 |
| commit | 36254c5ddf1b1b16fe5f1705227713ee7529b2f5 (patch) | |
| tree | 5b292d83c2c23238b1bd6fcc8a592cdae2a56567 | |
| parent | 3eea85963b35ae17d22030d8dbed1820f1d4a6a5 (diff) | |
[rubygems/rubygems] Use append_cflags instead of directly append for CFLAGS
https://github.com/rubygems/rubygems/commit/61ec0c8389
| -rw-r--r-- | lib/bundler/templates/newgem/ext/newgem/extconf-c.rb.tt | 2 |
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 %>) |
