From: Alan T. DeKok Date: Wed, 27 Apr 2022 21:28:39 +0000 (-0400) Subject: use HOST_CC for jlibtool X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3a33ad2aa837a77db044b4c96febcac566c1dd22;p=thirdparty%2Ffreeradius-server.git use HOST_CC for jlibtool as it's a local binary --- diff --git a/scripts/boiler.mk b/scripts/boiler.mk index 7d63f5a16a2..cd40623faa3 100644 --- a/scripts/boiler.mk +++ b/scripts/boiler.mk @@ -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: # diff --git a/scripts/libtool.mk b/scripts/libtool.mk index a46a3ae88c6..7b1907ad43a 100644 --- a/scripts/libtool.mk +++ b/scripts/libtool.mk @@ -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}