Check if -pipe option works

With `-pipe` option, gcc of Homebrew on macOS results in a mysterious
error.

```
$ command -v gcc-14
/opt/homebrew/bin/gcc-14

$ gcc-14 --version
gcc-14 (Homebrew GCC 14.2.0) 14.2.0
Copyright (C) 2024 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

$ gcc-14 -c -pipe conftest.c
clang: error: no input files
```
This commit is contained in:
Nobuyoshi Nakada 2024-10-22 14:30:04 +09:00 committed by Nobuyoshi Nakada
parent 1e59fa2bae
commit 47f6ba349f
Notes: git 2024-10-23 14:02:38 +00:00

View file

@ -4076,7 +4076,8 @@ AS_CASE(["$target_os"],
RUBY_APPEND_OPTION(CFLAGS, -pipe) RUBY_APPEND_OPTION(CFLAGS, -pipe)
], ],
[darwin*], [ [darwin*], [
RUBY_APPEND_OPTION(CFLAGS, -pipe) RUBY_TRY_CFLAGS(-pipe, [pipe_opt=yes], [pipe_opt=no])
AS_IF([test $pipe_opt = yes], [RUBY_APPEND_OPTION(CFLAGS, -pipe)])
AC_MSG_CHECKING([whether Security framework is needed]) AC_MSG_CHECKING([whether Security framework is needed])
AC_COMPILE_IFELSE([ AC_COMPILE_IFELSE([
AC_LANG_BOOL_COMPILE_TRY([ AC_LANG_BOOL_COMPILE_TRY([