pkgsrc-Bugs archive

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

pkg/47297: fonts/ttmkfdir2 fails to build with PKGSRC_COMPILER=clang



>Number:         47297
>Category:       pkg
>Synopsis:       fonts/ttmkfdir2 fails to build with PKGSRC_COMPILER=clang
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Dec 08 05:45:00 +0000 2012
>Originator:     Daniel Loffgren
>Release:        NetBSD 6.99.15 (HEAD as of Dec 6 2012)
>Organization:
>Environment:
NetBSD Maki.local 6.99.15 NetBSD 6.99.15 (VMWARE) #6: Fri Dec  7 15:21:43 UTC 
2012  kojiro@Maki.local:/usr/src/sys/arch/i386/compile/VMWARE i386
>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.

>How-To-Repeat:
Have clang
Set PKGSRC_COMPILER=clang
Try to build fonts/ttmkfdir2
>Fix:
This diff (applied to patch-aa, not added separately to patches) adds tags to 
hint functionality to libtool without changing the behavior of the build.

Index: patch-aa
===================================================================
RCS file: /cvsroot/pkgsrc/fonts/ttmkfdir2/patches/patch-aa,v
retrieving revision 1.3
diff -r1.3 patch-aa
3c3
< --- Makefile.orig     Wed Nov  6 23:28:44 2002
---
> --- Makefile.orig     2002-11-07 05:28:44.000000000 +0000
27c27
< +     libtool --mode=compile $(CXX) $(CPPFLAGS) $(CXXFLAGS) -o $@ -c $^
---
> +     libtool --tag=CC --mode=compile $(CXX) $(CPPFLAGS) $(CXXFLAGS) -o $@ -c 
> $^
30c30,31qi
<       libtool --mode=link $(CXX) -o $@ $^ $(LDFLAGS)
---
> -     libtool --mode=link $(CXX) -o $@ $^ $(LDFLAGS)
> +     libtool --tag=LD --mode=link $(CXX) -o $@ $^ $(LDFLAGS)



Home | Main Index | Thread Index | Old Index