Date: 14 Dec 2011 21:05:16 -0500 From: Howard Goldstein <hg@queue.to> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/163305: [PATCH] Support comms/libfec on amd64 Message-ID: <20111215020516.15935.qmail@cally.queue.to> Resent-Message-ID: <201112150240.pBF2e4ja038286@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 163305 >Category: ports >Synopsis: [PATCH] Support comms/libfec on amd64 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Thu Dec 15 02:40:04 UTC 2011 >Closed-Date: >Last-Modified: >Originator: Howard Goldstein >Release: FreeBSD 8.2-STABLE amd64 >Organization: >Environment: System: FreeBSD cally.queue.to 8.2-STABLE FreeBSD 8.2-STABLE #0: Sun Dec 11 15:28:13 EST 2011 hg@cally.queue.to:/usr/obj/usr/src/sys/CALLY amd64 >Description: This patch adds amd64 to Phil Karn KA9Q's comms/libfec package >How-To-Repeat: >Fix: Apply patches for amd64 support. Probably will also work on other 64 bit archs but not tested by n2wx *** libfec/Makefile.orig 2011-12-14 20:34:24.653733990 -0500 --- libfec/Makefile 2011-12-14 20:50:52.306036812 -0500 *************** *** 22,31 **** GNU_CONFIGURE= yes USE_GMAKE= yes USE_LDCONFIG= yes ! ONLY_FOR_ARCHS= i386 PLIST_FILES= include/fec.h lib/libfec.so lib/libfec.a post-patch: @${REINPLACE_CMD} -e 's|gcc|${CC}|g' ${WRKSRC}/makefile.in .include <bsd.port.mk> --- 22,35 ---- GNU_CONFIGURE= yes USE_GMAKE= yes USE_LDCONFIG= yes ! ONLY_FOR_ARCHS= i386 amd64 PLIST_FILES= include/fec.h lib/libfec.so lib/libfec.a post-patch: @${REINPLACE_CMD} -e 's|gcc|${CC}|g' ${WRKSRC}/makefile.in .include <bsd.port.mk> + + .if ${ARCH} == "amd64" + CFLAGS+= -fPIC + .endif *** /dev/null 2011-12-14 20:57:48.000000000 -0500 --- libfec/files/patch-dotprod.c 2011-12-14 20:44:01.336529860 -0500 *************** *** 0 **** --- 1,12 ---- + *** dotprod.c 2006-10-12 21:10:53.000000000 -0400 + --- ../../foowork/fec-3.0.1/dotprod.c 2011-12-14 20:43:00.132752233 -0500 + *************** + *** 54,59 **** + --- 54,60 ---- + switch(Cpu_mode){ + case PORT: + default: + + return feedp_port(p); + #ifdef __i386__ + case MMX: + case SSE: >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20111215020516.15935.qmail>