File tree 2 files changed +8
-4
lines changed
2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 1
1
#
2
- # Copyright (c) 2011, 2022 , Oracle and/or its affiliates. All rights reserved.
2
+ # Copyright (c) 2011, 2024 , Oracle and/or its affiliates. All rights reserved.
3
3
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4
4
#
5
5
# This code is free software; you can redistribute it and/or modify it
@@ -373,6 +373,10 @@ AC_DEFUN_ONCE([TOOLCHAIN_POST_DETECTION],
373
373
# This is necessary since AC_PROG_CC defaults CFLAGS to "-g -O2"
374
374
CFLAGS="$ORG_CFLAGS"
375
375
CXXFLAGS="$ORG_CXXFLAGS"
376
+
377
+ # filter out some unwanted additions autoconf may add to CXX; we saw this on macOS with autoconf 2.72
378
+ UTIL_GET_NON_MATCHING_VALUES(cxx_filtered, $CXX, -std=c++11 -std=gnu++11)
379
+ CXX="$cxx_filtered"
376
380
] )
377
381
378
382
# Check if a compiler is of the toolchain type we expect, and save the version
Original file line number Diff line number Diff line change 1
1
#
2
- # Copyright (c) 2011, 2020 , Oracle and/or its affiliates. All rights reserved.
2
+ # Copyright (c) 2011, 2024 , Oracle and/or its affiliates. All rights reserved.
3
3
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4
4
#
5
5
# This code is free software; you can redistribute it and/or modify it
@@ -199,7 +199,7 @@ AC_DEFUN([UTIL_GET_NON_MATCHING_VALUES],
199
199
if test -z "$legal_values"; then
200
200
$1 ="$2 "
201
201
else
202
- result=`$GREP -Fvx "$legal_values" <<< "$values_to_check" | $GREP -v '^$'`
202
+ result=`$GREP -Fvx -- "$legal_values" <<< "$values_to_check" | $GREP -v '^$'`
203
203
$1 =${result//$'\n'/ }
204
204
fi
205
205
] )
@@ -226,7 +226,7 @@ AC_DEFUN([UTIL_GET_MATCHING_VALUES],
226
226
if test -z "$illegal_values"; then
227
227
$1 =""
228
228
else
229
- result=`$GREP -Fx "$illegal_values" <<< "$values_to_check" | $GREP -v '^$'`
229
+ result=`$GREP -Fx -- "$illegal_values" <<< "$values_to_check" | $GREP -v '^$'`
230
230
$1 =${result//$'\n'/ }
231
231
fi
232
232
] )
You can’t perform that action at this time.
1 commit comments
openjdk-notifier[bot] commentedon Jan 18, 2024
Review
Issues