diff --git a/ext/nokogiri/extconf.rb b/ext/nokogiri/extconf.rb index 89c6ec56d82..37f3f2612cc 100644 --- a/ext/nokogiri/extconf.rb +++ b/ext/nokogiri/extconf.rb @@ -294,7 +294,7 @@ def process_recipe(name, version, static_p, cross_p) "--disable-shared", "--enable-static", ] - env['CFLAGS'] = "-fPIC #{env['CFLAGS']}" + env['CFLAGS'] = "-fPIC -O2 -U_FORTIFY_SOURCE -g #{env['CFLAGS']}" else recipe.configure_options += [ "--enable-shared", @@ -540,7 +540,6 @@ def configure }] recipe.configure_options += [ "CPPFLAGS=-Wall", - "CFLAGS=-O2 -g", "CXXFLAGS=-O2 -g", "LDFLAGS=" ]