public inbox for [email protected]
help / color / mirror / Atom feedAllow to add compile option to CFLAGS
2+ messages / 1 participants
[nested] [flat]
* Allow to add compile option to CFLAGS
@ 2025-12-03 23:58 Tatsuo Ishii <[email protected]>
0 siblings, 1 reply; 2+ messages in thread
From: Tatsuo Ishii @ 2025-12-03 23:58 UTC (permalink / raw)
To: [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.
--
Tatsuo Ishii
SRA OSS K.K.
English: http://www.sraoss.co.jp/index_en/
Japanese:http://www.sraoss.co.jp
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: Allow to add compile option to CFLAGS
@ 2025-12-09 07:52 Tatsuo Ishii <[email protected]>
parent: Tatsuo Ishii <[email protected]>
0 siblings, 0 replies; 2+ messages in thread
From: Tatsuo Ishii @ 2025-12-09 07:52 UTC (permalink / raw)
To: [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)
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2025-12-09 07:52 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2025-12-03 23:58 Allow to add compile option to CFLAGS Tatsuo Ishii <[email protected]>
2025-12-09 07:52 ` Tatsuo Ishii <[email protected]>
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox