p4-projects@freebsd.org
[Top] [All Lists]

PERFORCE change 101510 for review

Subject: PERFORCE change 101510 for review
From: John Birrell
Date: Fri, 14 Jul 2006 04:59:40 GMT
http://perforce.freebsd.org/chv.cgi?CH=101510

Change 101510 by jb@jb_freebsd2 on 2006/07/14 04:59:22

        If threads are built into libc, then still define the -pthread
        argument (because ports expect that), but always link just libc
        no matter what.

Affected files ...

.. //depot/projects/dtrace/src/contrib/gcc/config/freebsd-spec.h#3 edit

Differences ...

==== //depot/projects/dtrace/src/contrib/gcc/config/freebsd-spec.h#3 (text+ko) 
====

@@ -156,13 +156,26 @@
       %{pthread:-lc_r_p}}                                              \
   }"
 #else
+#ifdef FBSD_LIBC_THREADS
+/* Leave the -pthread option defined, but link libc no matter what. */
 #define FBSD_LIB_SPEC "                                                        
\
   %{!shared:                                                           \
+    %{!pg:                                                             \
+      %{!pthread:-lc}                                                  \
+      %{pthread:-lc}}                                                  \
+    %{pg:                                                              \
+      %{!pthread:-lc_p}                                                        
\
+      %{pthread:-lc_p}}                                                        
\
+  }"
+#else
+#define FBSD_LIB_SPEC "                                                        
\
+  %{!shared:                                                           \
     %{!pg: %{pthread:-lpthread} -lc}                                   \
     %{pg:  %{pthread:-lpthread_p} -lc_p}                               \
   }"
 #endif
 #endif
+#endif
 
 #if FBSD_MAJOR < 5
 #define FBSD_DYNAMIC_LINKER "/usr/libexec/ld-elf.so.1"
_______________________________________________
p4-projects@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/p4-projects
To unsubscribe, send any mail to "p4-projects-unsubscribe@xxxxxxxxxxx"

<Prev in Thread] Current Thread [Next in Thread>
  • PERFORCE change 101510 for review, John Birrell <=