aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2007-08-08 06:34:06 +0000
committerMatthias Klose <doko@gcc.gnu.org>2007-08-08 06:34:06 +0000
commitcf1c6ebf1319a1fa789dea2e8cd30344cc50795a (patch)
tree354c8d058e5c9e01c5fbe84623bdc7fb4ff41f30
parentb6f3b309477ec116eea82f751b6b33d0685dab70 (diff)
downloadgcc-cf1c6ebf1319a1fa789dea2e8cd30344cc50795a.zip
gcc-cf1c6ebf1319a1fa789dea2e8cd30344cc50795a.tar.gz
gcc-cf1c6ebf1319a1fa789dea2e8cd30344cc50795a.tar.bz2
gnu.h (CPP_SPEC): Add -pthread option.
2007-08-08 Samuel Thibault <samuel.thibault@ens-lyon.org> * gcc/config/i386/gnu.h (CPP_SPEC): Add -pthread option. * gcc/config/gnu.h (LIB_SPEC): Likewise. From-SVN: r127289
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/gnu.h2
-rw-r--r--gcc/config/i386/gnu.h2
3 files changed, 7 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 08d491f..8c4f0e1 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2007-08-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
+
+ * gcc/config/i386/gnu.h (CPP_SPEC): Add -pthread option.
+ * gcc/config/gnu.h (LIB_SPEC): Likewise.
+
2007-08-07 Yaz Saito <saito@google.com>
Ian Lance Taylor <iant@google.com>
diff --git a/gcc/config/gnu.h b/gcc/config/gnu.h
index 79c64c7..93b94b1 100644
--- a/gcc/config/gnu.h
+++ b/gcc/config/gnu.h
@@ -6,7 +6,7 @@
/* Default C library spec. Use -lbsd-compat for gcc -bsd. */
#undef LIB_SPEC
-#define LIB_SPEC "%{bsd:-lbsd-compat} %{!p:%{!pg:-lc}}%{p:-lc_p}%{pg:-lc_p}"
+#define LIB_SPEC "%{pthread:-lpthread} %{bsd:-lbsd-compat} %{!p:%{!pg:-lc}}%{p:-lc_p}%{pg:-lc_p}"
/* Standard include directory. In GNU, "/usr" is a four-letter word. */
#undef STANDARD_INCLUDE_DIR
diff --git a/gcc/config/i386/gnu.h b/gcc/config/i386/gnu.h
index d40ff7d..e303bce 100644
--- a/gcc/config/i386/gnu.h
+++ b/gcc/config/i386/gnu.h
@@ -12,7 +12,7 @@
while (0)
#undef CPP_SPEC
-#define CPP_SPEC "%{posix:-D_POSIX_SOURCE} %{bsd:-D_BSD_SOURCE}"
+#define CPP_SPEC "%{pthread:-D_REENTRANT} %{posix:-D_POSIX_SOURCE} %{bsd:-D_BSD_SOURCE}"
#undef CC1_SPEC
#define CC1_SPEC "%(cc1_cpu)"