Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 21 Jul 2012 07:14:13 GMT
From:      "4721@hushmail.com" <4721@hushmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/170049: [patch] lang/clang-devel: add depend on binutils
Message-ID:  <201207210714.q6L7EDdt022129@red.freebsd.org>
Resent-Message-ID: <201207210720.q6L7KBNA021177@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         170049
>Category:       ports
>Synopsis:       [patch] lang/clang-devel: add depend on binutils
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jul 21 07:20:11 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     4721@hushmail.com
>Release:        
>Organization:
>Environment:
>Description:
the last update to lang/clang-devel has clang using a ld option which does not
exist in binutils 2.15:

/usr/bin/ld: unrecognized option '--hash-style=both'
/usr/bin/ld: use the --help option for usage information
clang: error: linker command failed with exit code 1 (use -v to see invocation)

patch adds a depend on binutils for systems that predate the import of binutils
2.17.50. (it would be nice if binutils 2.17.50 was MFC to 7/8-stable)
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

Index: lang/clang-devel/Makefile
===================================================================
--- lang/clang-devel/Makefile	(revision 301219)
+++ lang/clang-devel/Makefile	(working copy)
@@ -91,6 +91,10 @@
 BROKEN=		Does not compile on sparc64
 .endif
 
+.if ${OSVERSION} < 900033
+RUN_DEPENDS+=	${LOCALBASE}/bin/ld:${PORTSDIR}/devel/binutils
+.endif
+
 .if defined(BOOTSTRAP) || defined(SVN_FETCH)
 FETCH_DEPENDS+= svn:${PORTSDIR}/devel/subversion
 


>Release-Note:
>Audit-Trail:
>Unformatted:



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