diff options
author | Lamont Granquist <lamont@opscode.com> | 2021-04-06 20:25:33 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-06 20:25:33 -0700 |
commit | f54134a3e5f9197af5aaffd8dc8ce481e0d002ff (patch) | |
tree | 5ed39101fd08cacf2eeb92377a08d254e365e907 | |
parent | 9449441e802320bce7346a994c94b0bbff417843 (diff) | |
parent | 69b59f47a8d38a77820233671c1edeb794d023e1 (diff) | |
download | libyajl2-gem-f54134a3e5f9197af5aaffd8dc8ce481e0d002ff.tar.gz |
Merge pull request #26 from chef/lcg/ruby-3-builds
Apply correct LDFLAGS on windows with ruby-3.0
-rw-r--r-- | ext/libyajl2/extconf.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/libyajl2/extconf.rb b/ext/libyajl2/extconf.rb index 07afbe7..3038386 100644 --- a/ext/libyajl2/extconf.rb +++ b/ext/libyajl2/extconf.rb @@ -48,11 +48,11 @@ module Libyajl2Build # magic flags copied from upstream yajl build system (-std=c99 is necessary for older gcc) $CFLAGS << " -std=c99 -pedantic -Wpointer-arith -Wno-format-y2k -Wstrict-prototypes -Wmissing-declarations -Wnested-externs -Wextra -Wundef -Wwrite-strings -Wold-style-definition -Wredundant-decls -Wno-unused-parameter -Wno-sign-compare -Wmissing-prototypes" $CFLAGS << " -O2" # match what the upstream uses for optimization + end - # create the implib on windows - if windows? - $LDFLAGS << " -Wl,--export-all-symbols -Wl,--enable-auto-import -Wl,--out-implib=libyajldll.a -Wl,--output-def,libyajl.def" - end + # create the implib on windows + if windows? + $LDFLAGS << " -Wl,--export-all-symbols -Wl,--enable-auto-import -Wl,--out-implib=libyajldll.a -Wl,--output-def,libyajl.def" end $CFLAGS << " -DNDEBUG" |