Skip to content

Commit

Permalink
ext: revert the undefinition of FORTIFY_SOURCE
Browse files Browse the repository at this point in the history
Introduced in 0b49210 for gnu/musl cross-compatibility
  • Loading branch information
flavorjones committed Dec 16, 2024
1 parent cef057f commit d9a79f0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ext/nokogiri/extconf.rb
Original file line number Diff line number Diff line change
Expand Up @@ -847,7 +847,7 @@ def configure
# The libiconv configure script doesn't accept "arm64" host string but "aarch64"
recipe.host = recipe.host.gsub("arm64-apple-darwin", "aarch64-apple-darwin")

cflags = concat_flags(ENV["CFLAGS"], "-O2", "-U_FORTIFY_SOURCE", "-g")
cflags = concat_flags(ENV["CFLAGS"], "-O2", "-g")

recipe.configure_options += [
"--disable-dependency-tracking",
Expand Down Expand Up @@ -911,7 +911,7 @@ def configure
end

cppflags = concat_flags(ENV["CPPFLAGS"])
cflags = concat_flags(ENV["CFLAGS"], "-O2", "-U_FORTIFY_SOURCE", "-g")
cflags = concat_flags(ENV["CFLAGS"], "-O2", "-g")

if cross_build_p
cppflags = concat_flags(cppflags, "-DNOKOGIRI_PRECOMPILED_LIBRARIES")
Expand Down Expand Up @@ -971,7 +971,7 @@ def configure
recipe.patch_files = Dir[File.join(PACKAGE_ROOT_DIR, "patches", "libxslt", "*.patch")].sort
end

cflags = concat_flags(ENV["CFLAGS"], "-O2", "-U_FORTIFY_SOURCE", "-g")
cflags = concat_flags(ENV["CFLAGS"], "-O2", "-g")

if darwin? && !cross_build_p
recipe.configure_options << "RANLIB=/usr/bin/ranlib" unless ENV.key?("RANLIB")
Expand Down

0 comments on commit d9a79f0

Please sign in to comment.