Skip to content

Commit 8aeb5d1

Browse files
committed
Merge remote-tracking branch 'upstream/master'
* upstream/master: Set this via cflags CDRIVER-1104 Don't error when adding -pthread on clang
2 parents fe20fe3 + 86eddf9 commit 8aeb5d1

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.evergreen/compile-unix.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ install_openssl () {
6161
cd ..
6262

6363
# x505_vfy.h has issues in 1.1.0e
64-
export CPPFLAGS=-Wno-redundant-decls
64+
export CFLAGS=-Wno-redundant-decls
6565
export PKG_CONFIG_PATH=$INSTALL_DIR/lib/pkgconfig
6666
export EXTRA_LIB_PATH="$INSTALL_DIR/lib"
6767
SSL="openssl";

build/autotools/PlatformFlags.m4

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ AS_IF([test "$os_darwin" = "yes"],
66
[AX_CHECK_COMPILE_FLAG([-Wno-cast-align], [CFLAGS="$CFLAGS -Wno-cast-align"])])
77
AS_IF([test "$os_darwin" = "yes"],
88
[AX_CHECK_COMPILE_FLAG([-Wno-unneeded-internal-declaration], [CFLAGS="$CFLAGS -Wno-unneeded-internal-declaration"])])
9+
AS_IF([test "$os_darwin" = "yes"],
10+
[AX_CHECK_COMPILE_FLAG([-Wno-error=unused-command-line-argument], [CFLAGS="$CFLAGS -Wno-error=unused-command-line-argument"])])
911
dnl We know there are some cast-align issues on Solaris
1012
AS_IF([test "$os_solaris" = "yes"],
1113
[AX_CHECK_COMPILE_FLAG([-Wno-cast-align], [CFLAGS="$CFLAGS -Wno-cast-align"])])

0 commit comments

Comments
 (0)