-
Notifications
You must be signed in to change notification settings - Fork 322
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
autoconf: unbreak --enable-lto, fix some language macros
PA_ADD_LANGFLAGS() was broken, resulting in among other things --enable-lto not working. Make autogen.sh fail if aclocal return error. Signed-off-by: H. Peter Anvin <[email protected]>
- Loading branch information
H. Peter Anvin
committed
Apr 16, 2024
1 parent
b11802c
commit 2d2ae91
Showing
5 changed files
with
25 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
dnl -------------------------------------------------------------------------- | ||
dnl PA_PROG_CC() | ||
dnl | ||
dnl Similar to AC_PROG_CC, but add a prototype for main() to | ||
dnl AC_INCLUDES_DEFAULT to avoid -Werror from breaking compilation. | ||
dnl -------------------------------------------------------------------------- | ||
AC_DEFUN([PA_PROG_CC], | ||
[AC_PROG_CC | ||
AS_IF([test x$ac_cv_prog != xno], | ||
[ac_includes_default="$ac_includes_default | ||
#ifndef __cplusplus | ||
extern int main(void); | ||
#endif"])]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters