From ab8bb6c1f41f4938f39c0074b29f8bd338f4c5f6 Mon Sep 17 00:00:00 2001 From: Michael Berg <1104528+jk779@users.noreply.github.com> Date: Tue, 16 Jan 2024 19:03:27 +0000 Subject: [PATCH] Add workaround for building gpgme with musl >= 1.2.4 --- ext/gpgme/extconf.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/gpgme/extconf.rb b/ext/gpgme/extconf.rb index c0cea4f..7dd4dc6 100644 --- a/ext/gpgme/extconf.rb +++ b/ext/gpgme/extconf.rb @@ -126,7 +126,7 @@ '--disable-g13-test', # We only need the C API. '--disable-languages', - "CFLAGS=-fPIC #{ENV["CFLAGS"]}", + "CFLAGS=-D_LARGEFILE64_SOURCE -fPIC #{ENV["CFLAGS"]}", ] checkpoint = "#{recipe.target}/#{recipe.name}-#{recipe.version}-#{recipe.host}.installed" unless File.exist?(checkpoint)