Skip to content

Commit

Permalink
ext: explicitly allow C90 and C99 features
Browse files Browse the repository at this point in the history
Related to #2302 and #2303.
  • Loading branch information
flavorjones committed Aug 6, 2021
1 parent fd1e4e3 commit bc947d5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ext/nokogiri/extconf.rb
Expand Up @@ -594,6 +594,9 @@ def do_clean
append_ldflags(ENV["LDFLAGS"].split) unless ENV["LDFLAGS"].nil?
$LIBS = concat_flags($LIBS, ENV["LIBS"])

# c99 is old enough to drink
append_cflags(["-std=c99", "-Wno-declaration-after-statement"])

# always include debugging information
append_cflags("-g")

Expand Down

0 comments on commit bc947d5

Please sign in to comment.