diff options
author | Florian Weimer <fweimer@redhat.com> | 2017-08-21 13:03:29 +0200 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2017-08-21 15:33:11 +0200 |
commit | b5889d25e9bf944a89fdd7bcabf3b6c6f6bb6f7c (patch) | |
tree | 93b8e344470970e6c9431c46cc2d251cd22a0b06 /assert/Makefile | |
parent | 41e673c1e771075f413f8e8ecd9e108f5ae096d9 (diff) | |
download | glibc-b5889d25e9bf944a89fdd7bcabf3b6c6f6bb6f7c.zip glibc-b5889d25e9bf944a89fdd7bcabf3b6c6f6bb6f7c.tar.gz glibc-b5889d25e9bf944a89fdd7bcabf3b6c6f6bb6f7c.tar.bz2 |
assert: Support types without operator== (int) [BZ #21972]
Diffstat (limited to 'assert/Makefile')
-rw-r--r-- | assert/Makefile | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/assert/Makefile b/assert/Makefile index 1c3be9b..9ec1be8 100644 --- a/assert/Makefile +++ b/assert/Makefile @@ -25,6 +25,15 @@ include ../Makeconfig headers := assert.h routines := assert assert-perr __assert -tests := test-assert test-assert-perr +tests := test-assert test-assert-perr tst-assert-c++ tst-assert-g++ include ../Rules + +ifeq ($(have-cxx-thread_local),yes) +CFLAGS-tst-assert-c++.o = -std=c++11 +LDLIBS-tst-assert-c++ = -lstdc++ +CFLAGS-tst-assert-g++.o = -std=gnu++11 +LDLIBS-tst-assert-g++ = -lstdc++ +else +tests-unsupported += tst-assert-c++ tst-assert-g++ +endif |