pkgsrc-Bugs archive

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

pkg/43946: www/libproxy-0.3.0 fails to build with sun c compiler



>Number:         43946
>Category:       pkg
>Synopsis:       www/libproxy-0.3.0 fails to build with sun c compiler
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Wed Oct 06 08:30:00 +0000 2010
>Originator:     Daniel Vergien
>Release:        pkgsrc-current
>Organization:
private
>Environment:
SunOS pkgsrc 5.10 Generic_142910-17 i86pc i386 i86pc
>Description:
libproxy fails because sun c compiler does not understand -std=c99, it uses 
-xc99=all instead. Also -lnsl is needed as an LDFLAG.
>How-To-Repeat:

>Fix:
Add these lines to Makefile:

.include "../../mk/compiler.mk"

# SunPro needs -xc99 instead of -std=c99
.if !empty(PKGSRC_COMPILER:Msunpro)
BUILDLINK_TRANSFORM+=  rename:-std=c99:-xc99=all
LDFLAGS+=              -lnsl
.endif



Home | Main Index | Thread Index | Old Index