From 78f7bb0b356802538b189b8e87ef13c80629963c Mon Sep 17 00:00:00 2001 From: Stephen Gallagher Date: Mon, 23 Mar 2020 14:31:48 -0400 Subject: [PATCH] Replace hard-coded gcc and g++ with __cc and __cxx macros Signed-off-by: Stephen Gallagher --- nodejs.spec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nodejs.spec b/nodejs.spec index f2e0afd..7ba814c 100644 --- a/nodejs.spec +++ b/nodejs.spec @@ -355,8 +355,8 @@ find . -type f -exec sed -i "s~python -c~python3 -c~" {} \; %global optflags %(echo %{optflags} | sed 's/-g /-g1 /') %endif -export CC='gcc' -export CXX='g++' +export CC='%{__cc}' +export CXX='%{__cxx}' # build with debugging symbols and add defines from libuv (#892601) # Node's v8 breaks with GCC 6 because of incorrect usage of methods on