From 45ea0d376a7e2a091acaf07195936be672430994 Mon Sep 17 00:00:00 2001 From: Boris Glumpler Date: Mon, 6 May 2024 23:37:48 +0530 Subject: [PATCH] Added gettext flags to prevent 'libintl.h' file not found errors (#5) --- Formula/postgresql@16.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Formula/postgresql@16.rb b/Formula/postgresql@16.rb index 3c09cdc..d929a92 100644 --- a/Formula/postgresql@16.rb +++ b/Formula/postgresql@16.rb @@ -40,6 +40,10 @@ def install ENV.prepend "LDFLAGS", "-L#{Formula["openssl@3"].opt_lib} -L#{Formula["readline"].opt_lib}" ENV.prepend "CPPFLAGS", "-I#{Formula["openssl@3"].opt_include} -I#{Formula["readline"].opt_include}" + # Fix 'libintl.h' file not found for extensions + ENV.prepend "LDFLAGS", "-L#{Formula["gettext"].opt_lib}" + ENV.prepend "CPPFLAGS", "-I#{Formula["gettext"].opt_include}" + args = %W[ --disable-debug --prefix=#{prefix}