[exim-cvs] tests: propagate CPPFLAGS into build invocations

Top Page
Delete this message
Reply to this message
Author: Exim Git Commits Mailing List
Date:  
To: exim-cvs
Subject: [exim-cvs] tests: propagate CPPFLAGS into build invocations
Gitweb: https://git.exim.org/exim.git/commitdiff/be4bdb96db7556f34c5f298f1c473d53f3700bd9
Commit:     be4bdb96db7556f34c5f298f1c473d53f3700bd9
Parent:     a3d83c9e8d57ba51cd246435b14604f995551802
Author:     Phil Pennock <pdp@???>
AuthorDate: Fri Sep 14 20:55:33 2018 -0400
Committer:  Phil Pennock <pdp@???>
CommitDate: Fri Sep 14 20:55:33 2018 -0400


    tests: propagate CPPFLAGS into build invocations


    With openssl installed by brew on macOS, OpenSSL headers are not in a
    normal place.  I can fiddle with LDFLAGS/CPPFLAGS to get them available,
    but then the `./configure` step succeeds and build fails.


    Propagating the CPPFLAGS into the generated Makefile lets the build
    succeed and we get a `client-ssl` binary output.
---
 test/Makefile.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


diff --git a/test/Makefile.in b/test/Makefile.in
index edcc4ab..6d3bc55 100644
--- a/test/Makefile.in
+++ b/test/Makefile.in
@@ -4,7 +4,7 @@
# These variables are set by the configure script.

CC=@CC@
-CFLAGS=@CFLAGS@ @BIND_8_COMPAT@ @DEFS@
+CFLAGS=@CFLAGS@ @CPPFLAGS@ @BIND_8_COMPAT@ @DEFS@
LDFLAGS=@LDFLAGS@
CLIENT_SSL=@CLIENT_SSL@
CLIENT_GNUTLS=@CLIENT_GNUTLS@