pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/47303: Patch to fix building security/nettle with clang



>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)



Home | Main Index | Thread Index | Old Index