ports/158138: [PATCH] fix misc/gplink to build with clang
Niclas Zeising
niclas.zeising at gmail.com
Tue Jun 21 20:40:11 UTC 2011
>Number: 158138
>Category: ports
>Synopsis: [PATCH] fix misc/gplink to build with clang
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Tue Jun 21 20:40:10 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator: Niclas Zeising
>Release: FreeBSD 8.2-RELEASE amd64
>Organization:
>Environment:
System: FreeBSD vincent.daemonic.se 8.2-RELEASE FreeBSD 8.2-RELEASE #0: Wed Apr 20 17:22:47 CEST 2011 root at vincent.daemonic.se:/usr/obj/usr/src/sys/VINCENT amd64
>Description:
misc/gplink hardcodes the use of gcc as c compiler.
>How-To-Repeat:
>Fix:
Attached patch makes misc/gplink use system default c compiler.
--- misc.gplink.clangfix.diff begins here ---
Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/misc/gplink/Makefile,v
retrieving revision 1.6
diff -u -d -r1.6 Makefile
--- Makefile 9 Mar 2009 17:15:40 -0000 1.6
+++ Makefile 21 Jun 2011 20:30:59 -0000
@@ -29,6 +29,7 @@
@${REINPLACE_CMD} -E -e 's,`libusb-config --cflags`,,g' \
-e 's,`libusb-config --libs`,-lusb,g' \
${WRKSRC}/Makefile
+ @${REINPLACE_CMD} -e 's/^\(CC[^g]*\)gcc$$/\1${CC}/' ${WRKSRC}/Makefile
.endif
do-install:
--- misc.gplink.clangfix.diff ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list