From ee46c50d350d8cc91e04e3169c122368eb65eb13 Mon Sep 17 00:00:00 2001 From: Tom Stellard Date: Thu, 9 Jan 2020 21:19:48 +0000 Subject: [PATCH] Export CC and CXX in __build_pre This helps ensure that the values of the __cc and __cxx macros are respected during builds. --- macros.in | 3 +++ 1 file changed, 3 insertions(+) diff --git a/macros.in b/macros.in index 6f24560457..8f0a7748b2 100644 --- a/macros.in +++ b/macros.in @@ -815,6 +815,9 @@ package or when debugging this package.\ export RPM_PACKAGE_NAME RPM_PACKAGE_VERSION RPM_PACKAGE_RELEASE\ LANG=C\ export LANG\ + CC=\"%{__cc}\"\ + CXX=\"%{__cxx}\"\ + export CC CXX \ unset CDPATH DISPLAY ||:\ %{?buildroot:RPM_BUILD_ROOT=\"%{u2p:%{buildroot}}\"\ export RPM_BUILD_ROOT}\