]> git.ipfire.org Git - thirdparty/dracut-ng.git/commitdiff
fix(configure): resolve regression for crosscompiling
authorBernhard Rosenkraenzer <bero@lindev.ch>
Sun, 19 May 2024 17:57:44 +0000 (13:57 -0400)
committerNeal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
Sun, 19 May 2024 21:33:44 +0000 (17:33 -0400)
configure

index 8d1971b79aef09b0205cef9a5cf16789df5d5652..9a313db61d53552a8dae506aab7c4440e5064844 100755 (executable)
--- a/configure
+++ b/configure
@@ -60,7 +60,7 @@ if ! ${PKG_CONFIG} --exists --print-errors " libkmod >= 23 "; then
     exit 1
 fi
 
-if ! command -v "${CC}" > /dev/null; then
+if ! ${CC} -c -o /dev/null /dev/null &> /dev/null; then
     echo "dracut needs a C compiler (${CC} not found)." >&2
     exit 1
 fi