Ignore duplicate libraries warnings from gcc 13
This commit is contained in:
parent
e7bdd9e498
commit
f8456b650b
@ -421,13 +421,16 @@ AC_SUBST(COUTFLAG)
|
|||||||
AC_SUBST(CSRCFLAG)
|
AC_SUBST(CSRCFLAG)
|
||||||
|
|
||||||
AS_CASE(["$build_os"],
|
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
|
# Xcode linker warns for deprecated architecture and wrongly
|
||||||
# installed TBD files.
|
# installed TBD files.
|
||||||
CC_WRAPPER=""
|
CC_WRAPPER=""
|
||||||
echo 'int main(void) {return 0;}' > conftest.c
|
echo 'int main(void) {return 0;}' > conftest.c
|
||||||
AS_IF([$CC -framework Foundation -o conftest conftest.c 2>&1 |
|
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_WRAPPER=`cd -P "${tooldir}" && pwd`/darwin-cc
|
||||||
CC="$CC_WRAPPER $CC"
|
CC="$CC_WRAPPER $CC"
|
||||||
])
|
])
|
||||||
|
@ -2,5 +2,6 @@
|
|||||||
exec 2> >(exec grep -v \
|
exec 2> >(exec grep -v \
|
||||||
-e '^ld: warning: The [a-z0-9_][a-z0-9_]* architecture is deprecated for macOS' \
|
-e '^ld: warning: The [a-z0-9_][a-z0-9_]* architecture is deprecated for macOS' \
|
||||||
-e '^ld: warning: text-based stub file /System/Library/Frameworks/' \
|
-e '^ld: warning: text-based stub file /System/Library/Frameworks/' \
|
||||||
|
-e '^ld: warning: ignoring duplicate libraries:' \
|
||||||
>&2)
|
>&2)
|
||||||
exec "$@"
|
exec "$@"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user