]> git.ipfire.org Git - thirdparty/glibc.git/blobdiff - assert/Makefile
time/tst-strftime2.c: Make the file easier to maintain
[thirdparty/glibc.git] / assert / Makefile
index 1ebc6574120df2736823ee22732395059d2221bd..3da7422560ae8b305015bb985c5892d2acd7cddd 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (C) 1991-2013 Free Software Foundation, Inc.
+# Copyright (C) 1991-2019 Free Software Foundation, Inc.
 # This file is part of the GNU C Library.
 
 # The GNU C Library is free software; you can redistribute it and/or
 #      Sub-makefile for assert portion of the library.
 #
 subdir := assert
+
+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
 
-test-assert-ENV = LANGUAGE=C
-test-assert-perr-ENV = LANGUAGE=C
+include ../Rules