Skip to content

Commit

Permalink
Fix unset HOSTCC and HOSTCFLAGS variables in Makefile.direct on AIX
Browse files Browse the repository at this point in the history
(fix of commit e10f0d0)

AIX Make seems not to recognize "?=" operator properly.

* Makefile.direct (HOSTCC, HOSTCFLAGS): Replace "?=" assignment
operator back to "=".
  • Loading branch information
ivmai committed Jan 1, 2023
1 parent 807c811 commit 31fc56f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile.direct
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 31fc56f

Please sign in to comment.