[exim-cvs] Build: do not override the system "cc", on Linux…

Top Page
Delete this message
Reply to this message
Author: Exim Git Commits Mailing List
Date:  
To: exim-cvs
Subject: [exim-cvs] Build: do not override the system "cc", on Linux and OpenBSD
Gitweb: https://git.exim.org/exim.git/commitdiff/40fa69f0f370146d9b85dfc5990b612b6d9d1ce9
Commit:     40fa69f0f370146d9b85dfc5990b612b6d9d1ce9
Parent:     d70fc2833417750a21f05e651ee776efb538bf05
Author:     Jeremy Harris <jgh146exb@???>
AuthorDate: Thu Sep 5 10:32:46 2019 +0100
Committer:  Jeremy Harris <jgh146exb@???>
CommitDate: Thu Sep 5 11:27:15 2019 +0100


    Build: do not override the system "cc", on Linux and OpenBSD
---
 src/OS/Makefile-Linux   | 2 ++
 src/OS/Makefile-OpenBSD | 1 +
 2 files changed, 3 insertions(+)


diff --git a/src/OS/Makefile-Linux b/src/OS/Makefile-Linux
index 990f884..cbbe01f 100644
--- a/src/OS/Makefile-Linux
+++ b/src/OS/Makefile-Linux
@@ -12,6 +12,8 @@ CHOWN_COMMAND=look_for_it
CHGRP_COMMAND=look_for_it
CHMOD_COMMAND=look_for_it

+# The system cc may be gcc or clang; do not force gcc
+CC=cc
# Preserve CFLAGS and CFLAGS_DYNAMIC from the caller/environment
CFLAGS ?= -O -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
CFLAGS_DYNAMIC ?= -shared -rdynamic
diff --git a/src/OS/Makefile-OpenBSD b/src/OS/Makefile-OpenBSD
index 2b37a73..8bff1b0 100644
--- a/src/OS/Makefile-OpenBSD
+++ b/src/OS/Makefile-OpenBSD
@@ -4,6 +4,7 @@ CHOWN_COMMAND=/usr/sbin/chown
CHGRP_COMMAND=/usr/sbin/chgrp
CHMOD_COMMAND=/bin/chmod

+CC=cc
CFLAGS=-O2 -Wall -Wno-parentheses -Wno-self-assign -Wno-logical-op-parentheses
CFLAGS += -DTAINT_CHECK_SLOW