From 33754b4f0b4ac864583a4262531caa7a2d4e3dfb Mon Sep 17 00:00:00 2001 From: Alan Wu Date: Tue, 30 Jan 2024 18:28:17 -0500 Subject: [PATCH] Define _GNU_SOURCE properly extconf output shows that it was passing _GNU_SOURCE as a command line argument and it was failing: checking for whether _GNU_SOURCE is accepted as CPPFLAGS... no --- ext/bootsnap/extconf.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/bootsnap/extconf.rb b/ext/bootsnap/extconf.rb index e7c1160..c730440 100644 --- a/ext/bootsnap/extconf.rb +++ b/ext/bootsnap/extconf.rb @@ -6,7 +6,7 @@ have_func "fdatasync", "unistd.h" unless RUBY_PLATFORM.match?(/mswin|mingw|cygwin/) - append_cppflags ["_GNU_SOURCE"] # Needed of O_NOATIME + append_cppflags ["-D_GNU_SOURCE"] # Needed of O_NOATIME end append_cflags ["-O3", "-std=c99"]