Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 22 Mar 2015 16:32:27 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 198794] [patch] Mk/bsd.port.mk : Fix PTHREAD_LIBS definition
Message-ID:  <bug-198794-13@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
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@FreeBSD.org
          Reporter: marino@FreeBSD.org
                CC: portmgr@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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-198794-13>