public inbox for [email protected]
help / color / mirror / Atom feedFrom: Tatsuo Ishii <[email protected]>
To: [email protected]
Subject: Re: Allow to add compile option to CFLAGS
Date: Tue, 09 Dec 2025 16:52:29 +0900 (JST)
Message-ID: <[email protected]> (raw)
In-Reply-To: <[email protected]>
References: <[email protected]>
> PostgreSQL allows to use "COPT" environment variable to add optional
> compiler flags at make time.
>
> https://www.postgresql.org/docs/current/install-make.html#CONFIGURE-ENVVARS
>
> Unfortunately pgpool does not have such a mechanism. Attached small
> patch adds support for "COPT".
>
> Comments and suggestions are welcome.
Forgot to attach the patch.
Best regards,
--
Tatsuo Ishii
SRA OSS K.K.
English: http://www.sraoss.co.jp/index_en/
Japanese:http://www.sraoss.co.jp
Attachments:
[application/octet-stream] configure.ac.patch (356B, 2-configure.ac.patch)
download | inline diff:
diff --git a/configure.ac b/configure.ac
index bc668a4f2..5655fdcd8 100644
--- a/configure.ac
+++ b/configure.ac
@@ -425,6 +425,10 @@ AC_ARG_WITH(memcached,
CFLAGS="$CFLAGS -fno-strict-aliasing"
+if test "$COPT" != ""; then
+ CFLAGS="$CFLAGS $COPT"
+fi
+
AC_SUBST(MEMCACHED_INCLUDE_OPT)
AC_SUBST(MEMCACHED_LINK_OPT)
AC_SUBST(MEMCACHED_RPATH_OPT)
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected], [email protected]
Subject: Re: Allow to add compile option to CFLAGS
In-Reply-To: <[email protected]>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox