]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
use HOST_CC for jlibtool
authorAlan T. DeKok <aland@freeradius.org>
Wed, 27 Apr 2022 21:28:39 +0000 (17:28 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Wed, 27 Apr 2022 21:28:39 +0000 (17:28 -0400)
as it's a local binary

scripts/boiler.mk
scripts/libtool.mk

index 7d63f5a16a289905cb366227f2c3508319363293..cd40623faa30eb9d21da361c2e4d603a29cee6fe 100644 (file)
@@ -38,6 +38,13 @@ else
     Q=
 endif
 
+ifeq "${HOST_CC}" ""
+   HOST_CC := $(shell which cc)
+   ifeq "${HOST_CC}" ""
+     HOST_CC := ${CC}
+   endif
+endif
+
 #
 #  If you want HTML output of the scanner to be rendered to the terminal:
 #
index a46a3ae88c6552854402c214404901fe7a7717b7..7b1907ad43ac97fcd7971b6836400fb664d7fd24 100644 (file)
@@ -44,7 +44,7 @@ ifeq "${LIBTOOL}" "JLIBTOOL"
     ${JLIBTOOL}: ${top_makedir}/jlibtool.c
        $(Q)mkdir -p $(dir $@)
        $(Q)echo CC jlibtool.c
-       $(Q)${CC} $< -o $@ -DPROGRAM_VERSION=$(RADIUSD_VERSION_STRING)
+       $(Q)${HOST_CC} $< -o $@ -DPROGRAM_VERSION=$(RADIUSD_VERSION_STRING)
 
     jlibtool: ${JLIBTOOL}