summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2022-02-23 06:00:54 -0700
committerJens Axboe <axboe@kernel.dk>2022-02-23 06:00:54 -0700
commit540e837e5fc125b85ea67401117fc601997958f9 (patch)
treeda2d5af45ae42218493049faa06441d7981291c0
parentd431c4960f3ad50d086af4aec54cc3236e82ad8c (diff)
parent2cd9452658b6420e0211ed0a0e1440bed50bdbf7 (diff)
downloadliburing-540e837e5fc125b85ea67401117fc601997958f9.tar.gz
liburing-540e837e5fc125b85ea67401117fc601997958f9.tar.bz2
Merge tag 'liburing-2022-02-23' of https://github.com/ammarfaizi2/liburing
liburing-2022-02-23 Two configure script fixes from Alviro Iskandar Setiawan: - configure: Fix _GNU_SOURCE redefinition warning - configure: Fix clang-12 warning `-Wdeprecated` Link: https://github.com/axboe/liburing/pull/538 * tag 'liburing-2022-02-23' of https://github.com/ammarfaizi2/liburing: configure: Fix clang-12 warning `-Wdeprecated` configure: Fix _GNU_SOURCE redefinition warning
-rwxr-xr-xconfigure8
1 files changed, 4 insertions, 4 deletions
diff --git a/configure b/configure
index 1f7f1c3..512a556 100755
--- a/configure
+++ b/configure
@@ -81,10 +81,11 @@ fi
TMP_DIRECTORY="$(mktemp -d)"
TMPC="$TMP_DIRECTORY/liburing-conf.c"
TMPC2="$TMP_DIRECTORY/liburing-conf-2.c"
+TMPCXX="$TMP_DIRECTORY/liburing-conf-2.cpp"
TMPO="$TMP_DIRECTORY/liburing-conf.o"
TMPE="$TMP_DIRECTORY/liburing-conf.exe"
-touch $TMPC $TMPC2 $TMPO $TMPE
+touch $TMPC $TMPC2 $TMPCXX $TMPO $TMPE
# NB: do not call "exit" in the trap handler; this is buggy with some shells;
# see <1285349658-3122-1-git-send-email-loic.minier@linaro.org>
@@ -171,7 +172,7 @@ compile_prog_cxx() {
local_cflags="$1"
local_ldflags="$2 $LIBS"
echo "Compiling test case $3" >> config.log
- do_cxx $CFLAGS $local_cflags -o $TMPE $TMPC $LDFLAGS $local_ldflags
+ do_cxx $CFLAGS $local_cflags -o $TMPE $TMPCXX $LDFLAGS $local_ldflags
}
has() {
@@ -334,7 +335,7 @@ print_config "glibc_statx" "$glibc_statx"
##########################################
# check for C++
has_cxx="no"
-cat > $TMPC << EOF
+cat > $TMPCXX << EOF
#include <iostream>
int main(int argc, char **argv)
{
@@ -369,7 +370,6 @@ print_config "has_ucontext" "$has_ucontext"
# check for memfd_create(2)
has_memfd_create="no"
cat > $TMPC << EOF
-#define _GNU_SOURCE
#include <sys/mman.h>
int main(int argc, char **argv)
{