From: Nathan Moinvaziri Date: Wed, 29 May 2019 19:32:29 +0000 (-0700) Subject: Fixed float-abi detection command in cmake. Should have been using $ENV{CC} but using... X-Git-Tag: 1.9.9-b1~479 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b931a77bc5df6f5d67c209bbe042fe2b9d1f2781;p=thirdparty%2Fzlib-ng.git Fixed float-abi detection command in cmake. Should have been using $ENV{CC} but using ${CMAKE_C_COMPILER} is more exact. --- diff --git a/CMakeLists.txt b/CMakeLists.txt index bbed27764..edb565d35 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -165,7 +165,7 @@ else() endif() endif() if(__GNUC__ AND "${ARCH}" MATCHES "arm") - execute_process(COMMAND "${CC}" "-dumpmachine" + execute_process(COMMAND ${CMAKE_C_COMPILER} "-dumpmachine" OUTPUT_VARIABLE GCC_MACHINE) if ("${GCC_MACHINE}" MATCHES "eabihf") set(FLOATABI "-mfloat-abi=hard")