Make 'clang -pthread' work on recent DragonFly versions. The patch from

upstream svn trunk. Bump PKGREVISION.
This commit is contained in:
hasso 2009-11-25 12:32:30 +00:00
parent e2fd74b58c
commit 5ab15d8bfc
3 changed files with 17 additions and 3 deletions

View file

@ -1,8 +1,8 @@
# $NetBSD: Makefile,v 1.2 2009/11/17 11:54:10 asau Exp $ # $NetBSD: Makefile,v 1.3 2009/11/25 12:32:30 hasso Exp $
# #
DISTNAME= clang-2.6 DISTNAME= clang-2.6
PKGREVISION= 1 PKGREVISION= 2
CATEGORIES= lang CATEGORIES= lang
MASTER_SITES= http://llvm.org/releases/${PKGVERSION_NOREV}/ MASTER_SITES= http://llvm.org/releases/${PKGVERSION_NOREV}/
DISTFILES= llvm-2.6.tar.gz clang-2.6.tar.gz DISTFILES= llvm-2.6.tar.gz clang-2.6.tar.gz

View file

@ -1,4 +1,4 @@
$NetBSD: distinfo,v 1.1.1.1 2009/11/16 23:24:37 drochner Exp $ $NetBSD: distinfo,v 1.2 2009/11/25 12:32:30 hasso Exp $
SHA1 (clang-2.6.tar.gz) = 188f29ad3b2c64fcdc791aa34b323ed06452d7ae SHA1 (clang-2.6.tar.gz) = 188f29ad3b2c64fcdc791aa34b323ed06452d7ae
RMD160 (clang-2.6.tar.gz) = b7e44abbf28902ff8e3fd4578a5ff9dd34f40817 RMD160 (clang-2.6.tar.gz) = b7e44abbf28902ff8e3fd4578a5ff9dd34f40817
@ -6,6 +6,7 @@ Size (clang-2.6.tar.gz) = 3857138 bytes
SHA1 (llvm-2.6.tar.gz) = 547471147cbf6d3e49539e01196ffada2c79c250 SHA1 (llvm-2.6.tar.gz) = 547471147cbf6d3e49539e01196ffada2c79c250
RMD160 (llvm-2.6.tar.gz) = 24d58cb052ab5879aae59eaf4885ec41186ee22a RMD160 (llvm-2.6.tar.gz) = 24d58cb052ab5879aae59eaf4885ec41186ee22a
Size (llvm-2.6.tar.gz) = 7790380 bytes Size (llvm-2.6.tar.gz) = 7790380 bytes
SHA1 (patch-aa) = 173c470dbeab1912d29e97e9d91ec1581ed625b1
SHA1 (patch-ac) = 08bf497cae798e65100fde06e294b4b31eedbec3 SHA1 (patch-ac) = 08bf497cae798e65100fde06e294b4b31eedbec3
SHA1 (patch-ad) = b7f4da294510666063b655540991f51c9044d618 SHA1 (patch-ad) = b7f4da294510666063b655540991f51c9044d618
SHA1 (patch-ae) = 61b4d1c103ba3a3332ef748998c2a8930028d780 SHA1 (patch-ae) = 61b4d1c103ba3a3332ef748998c2a8930028d780

View file

@ -0,0 +1,13 @@
$NetBSD: patch-aa,v 1.1 2009/11/25 12:32:30 hasso Exp $
--- tools/clang/lib/Driver/Tools.cpp.orig 2009-11-25 12:21:45 +0200
+++ tools/clang/lib/Driver/Tools.cpp 2009-11-25 12:22:09 +0200
@@ -2326,7 +2326,7 @@ void dragonfly::Link::ConstructJob(Compi
if (Args.hasArg(options::OPT_pthread))
- CmdArgs.push_back("-lthread_xu");
+ CmdArgs.push_back("-lpthread");
if (!Args.hasArg(options::OPT_nolibc)) {
CmdArgs.push_back("-lc");