From 31fc56fef68aece642cf09c7ec9d61ba3915b4b6 Mon Sep 17 00:00:00 2001 From: Ivan Maidanski Date: Sun, 1 Jan 2023 15:34:59 +0300 Subject: [PATCH] Fix unset HOSTCC and HOSTCFLAGS variables in Makefile.direct on AIX (fix of commit e10f0d03b) AIX Make seems not to recognize "?=" operator properly. * Makefile.direct (HOSTCC, HOSTCFLAGS): Replace "?=" assignment operator back to "=". --- Makefile.direct | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile.direct b/Makefile.direct index 4c3803b78..d7eb42113 100644 --- a/Makefile.direct +++ b/Makefile.direct @@ -80,8 +80,8 @@ CFLAGS+= -I$(srcdir)/include -I$(AO_SRC_DIR)/src \ # part of the build process, i.e. on the build machine. These will usually # be the same as CC and CFLAGS, except in a cross-compilation environment. # Note that HOSTCFLAGS should include any -D flags that affect thread support. -HOSTCC?= $(CC) -HOSTCFLAGS?= $(CFLAGS) +HOSTCC= $(CC) +HOSTCFLAGS= $(CFLAGS) # For dynamic library builds, it may be necessary to add flags to generate # PIC code, e.g. -fPIC on Linux.