diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2023-10-30 21:19:44 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2023-11-07 23:19:50 +0900 |
commit | f8456b650bae8eef94acd80cb255a730177fe1ed (patch) | |
tree | 6629d19a819b80828874d2e57e51285b97544115 /configure.ac | |
parent | e7bdd9e498306a64c5785bdb642d192e1f513c84 (diff) | |
download | ruby-f8456b650bae8eef94acd80cb255a730177fe1ed.tar.gz |
Ignore duplicate libraries warnings from gcc 13
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index 56f6818dcf..3612288cbe 100644 --- a/configure.ac +++ b/configure.ac @@ -421,13 +421,16 @@ AC_SUBST(COUTFLAG) AC_SUBST(CSRCFLAG) AS_CASE(["$build_os"], - [darwin1*.*], [ + [darwin*], [ + # gcc 13 warns duplicate -l options, which are added by the + # default spec. # Xcode linker warns for deprecated architecture and wrongly # installed TBD files. CC_WRAPPER="" echo 'int main(void) {return 0;}' > conftest.c AS_IF([$CC -framework Foundation -o conftest conftest.c 2>&1 | - grep '^ld: warning: text-based stub file' >/dev/null], [ + grep -e '^ld: warning: ignoring duplicate libraries:' \ + -e '^ld: warning: text-based stub file' >/dev/null], [ CC_WRAPPER=`cd -P "${tooldir}" && pwd`/darwin-cc CC="$CC_WRAPPER $CC" ]) |