Ticket UUID: | 1636685 | |||
Title: | FreeBSD's ld does not understand -pthread | |||
Type: | Bug | Version: | None | |
Submitter: | rebum | Created on: | 2007-01-16 10:47:20 | |
Subsystem: | 85. tclconfig | Assigned To: | dkf | |
Priority: | 9 Immediate | Severity: | ||
Status: | Closed | Last Modified: | 2010-01-04 04:17:22 | |
Resolution: | Accepted | Closed By: | dkf | |
Closed on: | 2010-01-03 21:17:22 | |||
Description: |
FreeBSD's linker does not understand the -pthread option. Since FreeBSD 5.3 on all architectures except alpha and sparc64 -lpthread is used. The mentioned two use -lkse. See attached patch. | |||
User Comments: |
dkf added on 2010-01-04 04:17:22:
allow_comments - 1 And to 8.5 branch too dkf added on 2010-01-04 04:14:42: Applied to HEAD and TEA. Since this is the configuration that is used in FreeBSD builds (and it looks very good) I've not had to spend so long hanging around waiting for confirmation. dkf added on 2010-01-01 20:28:25: BTW, my patch should bring tcl.m4 into alignment with that used in the most current ports. (Thanks for the link, that let me check this directly.) dkf added on 2010-01-01 20:25:20: File Deleted - 211674: dkf added on 2010-01-01 20:25:01: File Added - 357319: tcl.m4.patch dkf added on 2010-01-01 20:24:31: Patch no longer applies to the HEAD nicely, and possibly interferes with NetBSD or ancient FreeBSD support. Suggested new patch (distilled from the old one except in a slightly different way) attached; let me know if it is right and I'll get it applied ASAP. rebum added on 2007-01-17 18:59:17: File Added - 211674: tcl.m4.patch Logged In: YES user_id=41220 Originator: YES File Added: tcl.m4.patch rebum added on 2007-01-17 18:58:27: File Deleted - 211669: rebum added on 2007-01-17 18:00:03: File Added - 211669: tcl.m4.patch Logged In: YES user_id=41220 Originator: YES I removed the patch attached and replaced it by a new one. Inspiration: Patch for TCL configure in the FreeBSD ports tree ports/lang/tcl84/files/patch-configure: http://www.freebsd.org/cgi/cvsweb.cgi/ports/lang/tcl84/files/patch-configure?rev=1.10&content-type=text/x-cvsweb-markup PTHREAD_CFLAGS and PTHREAD_LIBS are initialized in ports/Mk/bsd.port.mk: http://www.freebsd.org/cgi/cvsweb.cgi/ports/Mk/bsd.port.mk?rev=1.545&content-type=text/x-cvsweb-markup SHLIB_MAJOR in src/share/mk/bsd.lib.mk, it is commonly used in FreeBSD ports: http://www.freebsd.org/cgi/cvsweb.cgi/src/share/mk/bsd.lib.mk?rev=1.179&content-type=text/x-cvsweb-markup File Added: tcl.m4.patch rebum added on 2007-01-17 17:54:13: File Deleted - 211501: rebum added on 2007-01-17 17:54:10: Logged In: YES user_id=41220 Originator: YES Looks like I was not quite right. rebum added on 2007-01-16 17:47:22: File Added - 211501: tcl.m4.patch |
Attachments:
- tcl.m4.patch [download] added by dkf on 2010-01-01 20:25:01. [details]