Skip to content

Commit

Permalink
build: AC_SUBST for AM_CFLAGS (libuv#3551)
Browse files Browse the repository at this point in the history
Using autoconf 2.71 and automake 1.16.5 the CFLAGS from
CC_CHECK_CFLAGS_APPEND does not get set in the Makefile without AC_SUBST
causing compilation to fail on Solaris due to missing -std=gnu89
  • Loading branch information
pekdon authored Mar 15, 2022
1 parent 442e471 commit 739e441
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions m4/libuv-check-flags.m4
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ AC_DEFUN([CC_CHECK_CFLAG_APPEND], [
AS_IF([eval test x$]AS_TR_SH([cc_cv_cflags_$1])[ = xyes],
[AM_CFLAGS="$AM_CFLAGS $1"; DEBUG_CFLAGS="$DEBUG_CFLAGS $1"; $2], [$3])
AC_SUBST([AM_CFLAGS])
])

dnl CC_CHECK_CFLAGS_APPEND([FLAG1 FLAG2], [action-if-found], [action-if-not])
Expand Down

0 comments on commit 739e441

Please sign in to comment.