diff options
author | lloyd <[email protected]> | 2009-11-17 00:08:44 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2009-11-17 00:08:44 +0000 |
commit | 435965ac3b199d31b799ebefc012d928bc415621 (patch) | |
tree | 229821856be50836e81fba9ef8964e11a43503e5 /src/build-data/cc | |
parent | ba4520c3657ef4b031119685166d85446ef7c1ce (diff) |
Use -pthread on all platforms. This is necessary to get functioning support
for std::thread, and to ensure that std::mutex actually maps to a real
mutex and not a no-op.
Don't explicitly define _REENTRANT; -pthread will handle that if necessary.
Diffstat (limited to 'src/build-data/cc')
-rw-r--r-- | src/build-data/cc/gcc.txt | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/build-data/cc/gcc.txt b/src/build-data/cc/gcc.txt index d1b76edec..0b1668908 100644 --- a/src/build-data/cc/gcc.txt +++ b/src/build-data/cc/gcc.txt @@ -8,7 +8,7 @@ add_include_dir_option "-I" add_lib_dir_option "-L" add_lib_option "-l" -lang_flags "-D_REENTRANT -ansi -Wno-long-long -std=c++0x" +lang_flags "-ansi -Wno-long-long -std=c++0x" warning_flags "-W -Wall" #warning_flags "-Wextra -Wall -Wstrict-aliasing -Wstrict-overflow=5 -Wcast-align -Wmissing-declarations -Wno-unused-parameter" @@ -70,6 +70,8 @@ ppc64 -> "-mcpu=SUBMODEL" ppc # Note that the 'linking' bit means "use this for both compiling *and* linking" <mach_abi_linking> +all -> "-pthread" + amd64 -> "-m64" mips64 -> "-mabi=64" s390 -> "-m31" @@ -78,10 +80,6 @@ sparc32 -> "-m32 -mno-app-regs" sparc64 -> "-m64 -mno-app-regs" ppc64 -> "-m64" -# This should probably be used on most/all targets, but the docs are incomplete -openbsd -> "-pthread" -freebsd -> "-pthread" -dragonfly -> "-pthread" -netbsd -> "-pthread -D_NETBSD_SOURCE" +netbsd -> "-D_NETBSD_SOURCE" qnx -> "-fexceptions -D_QNX_SOURCE" </mach_abi_linking> |