NetBSD Problem Report #47303
From www@NetBSD.org Mon Dec 10 06:15:16 2012
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
by www.NetBSD.org (Postfix) with ESMTP id 0841D63E4E4
for <gnats-bugs@gnats.NetBSD.org>; Mon, 10 Dec 2012 06:15:16 +0000 (UTC)
Message-Id: <20121210061515.08F0E63E4E4@www.NetBSD.org>
Date: Mon, 10 Dec 2012 06:15:14 +0000 (UTC)
From: miyokojiro@gmail.com
Reply-To: miyokojiro@gmail.com
To: gnats-bugs@NetBSD.org
Subject: Patch to fix building security/nettle with clang
X-Send-Pr-Version: www-1.0
>Number: 47303
>Category: pkg
>Synopsis: Patch to fix building security/nettle with clang
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Dec 10 06:20:00 +0000 2012
>Originator: Daniel Loffgren
>Release: NetBSD 6.99.14 (HEAD as of Dec 2)
>Organization:
>Environment:
NetBSD airi 6.99.15 NetBSD 6.99.15 (T61) #2: Sun Dec 2 10:51:24 UTC 2012 kojiro@airi:/usr/src/sys/arch/amd64/compile/T61 amd64
>Description:
libtool can't determine the intended behavior of clang since it's not being called via gcc, g++, ld, etc., so it needs to be explicitly specified. This problem could possibly arise with other compilers as well, and there should be no harm in being explicit. This is the same issue as in pkg/47297.
>How-To-Repeat:
Have clang
Set PKGSRC_COMPILER=clang
Try to build security/nettle
>Fix:
Apply the following patches to patches/patch-Makefile.in and patches/patch-config.make.in
Index: patch-Makefile.in
===================================================================
RCS file: /cvsroot/pkgsrc/security/nettle/patches/patch-Makefile.in,v
retrieving revision 1.3
diff -r1.3 patch-Makefile.in
37c37
< + ${LIBTOOL} --mode=link ${CC} ${LDFLAGS} -o libnettle.la \
---
> + ${LIBTOOL} --tag=LD --mode=link ${CC} ${LDFLAGS} -o libnettle.la \
42c42
< + ${LIBTOOL} --mode=link ${CC} ${LDFLAGS} -o libhogweed.la \
---
> + ${LIBTOOL} --tag=LD --mode=link ${CC} ${LDFLAGS} -o libhogweed.la \
Index: patch-config.make.in
===================================================================
RCS file: /cvsroot/pkgsrc/security/nettle/patches/patch-config.make.in,v
retrieving revision 1.1.1.1
diff -r1.1.1.1 patch-config.make.in
13,14c13,14
< +LINK = ${LIBTOOL} --mode=link $(CC) $(CFLAGS) $(PRE_LDFLAGS) $(LDFLAGS)
< +LINK_CXX = ${LIBTOOL} --mode=link $(CXX) $(CXXFLAGS) $(PRE_LDFLAGS) $(LDFLAGS)
---
> +LINK = ${LIBTOOL} --tag=LD --mode=link $(CC) $(CFLAGS) $(PRE_LDFLAGS) $(LDFLAGS)
> +LINK_CXX = ${LIBTOOL} --tag=LD --mode=link $(CXX) $(CXXFLAGS) $(PRE_LDFLAGS) $(LDFLAGS)
(Contact us)
$NetBSD: query-full-pr,v 1.36 2007/11/24 03:27:39 kano Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.