Replace hard-coded gcc and g++ with __cc and __cxx macros

Signed-off-by: Stephen Gallagher <sgallagh@redhat.com>
This commit is contained in:
Stephen Gallagher 2020-03-23 14:31:48 -04:00
parent 4fd4157b50
commit 78f7bb0b35
No known key found for this signature in database
GPG Key ID: 45DB85A568286D11

View File

@ -355,8 +355,8 @@ find . -type f -exec sed -i "s~python -c~python3 -c~" {} \;
%global optflags %(echo %{optflags} | sed 's/-g /-g1 /') %global optflags %(echo %{optflags} | sed 's/-g /-g1 /')
%endif %endif
export CC='gcc' export CC='%{__cc}'
export CXX='g++' export CXX='%{__cxx}'
# build with debugging symbols and add defines from libuv (#892601) # build with debugging symbols and add defines from libuv (#892601)
# Node's v8 breaks with GCC 6 because of incorrect usage of methods on # Node's v8 breaks with GCC 6 because of incorrect usage of methods on