[Bug 198794] [patch] Mk/bsd.port.mk : Fix PTHREAD_LIBS definition

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sun Mar 22 16:32:27 UTC 2015


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=198794

            Bug ID: 198794
           Summary: [patch] Mk/bsd.port.mk : Fix PTHREAD_LIBS definition
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Keywords: patch
          Severity: Affects Only Me
          Priority: ---
         Component: Ports Framework
          Assignee: freebsd-ports-bugs at FreeBSD.org
          Reporter: marino at FreeBSD.org
                CC: portmgr at FreeBSD.org
          Keywords: patch

PTHREAD_LIBS is defined as "-pthread".  It should be "-lpthread".

Quoting tijl@
"FreeBSD used to have two libc, one without threading (libc.so) and one with
(libc_r.so).  With -pthread the compiler would link with libc_r instead of
libc.  Nowadays there's only one libc and -pthread tells the compiler to link
with libpthread, exactly like -lpthread does.  Both work and patches that
change -lpthread into -pthread or vice versa are redundant."

I'll commit the patch if this is approved.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list