diff options
author | ro <ro@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-11-28 12:27:58 +0000 |
---|---|---|
committer | ro <ro@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-11-28 12:27:58 +0000 |
commit | 9653be27c4fc8a87485f6dcd0305e68fe7c5a76b (patch) | |
tree | 0b31deb1edb9a707798c68f61eacd89550def09a /gcc/config/sol2.h | |
parent | 4b435152310933bcfb3bf3fa65a08caa5cb89f9c (diff) | |
download | gcc-9653be27c4fc8a87485f6dcd0305e68fe7c5a76b.tar.gz |
Add -lrt on Solaris
gcc/cp:
* g++spec.c (TIMELIB): Define.
(WITHLIBC, SKIPOPT): Adjust values.
(lang_specific_driver): Add TIME_LIBRARY if not passed explicitly.
gcc:
* config/sol2.h (TIME_LIBRARY): Define.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205483 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/sol2.h')
-rw-r--r-- | gcc/config/sol2.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/config/sol2.h b/gcc/config/sol2.h index 749e16830e3..abd7342aef5 100644 --- a/gcc/config/sol2.h +++ b/gcc/config/sol2.h @@ -163,6 +163,9 @@ along with GCC; see the file COPYING3. If not see #undef LINK_ARCH_SPEC #define LINK_ARCH_SPEC LINK_ARCH32_SPEC +/* C++11 programs need -lrt for nanosleep. */ +#define TIME_LIBRARY "rt" + #ifndef USE_GLD /* With Sun ld, -rdynamic is a no-op. */ #define RDYNAMIC_SPEC "" |