Skip site navigation (1)Skip section navigation (2)
Date:      Wed,  5 Jul 2006 09:09:18 -0500 (CDT)
From:      Erik Greenwald <erik@smluc.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        erik@math.missouristate.edu
Subject:   ports/99802: x11-toolkits/gauche-gtk - fix for broken amd64 build
Message-ID:  <20060705140918.6162C1CEBA@phoenix.smluc.org>
Resent-Message-ID: <200607051410.k65EAJ0r089270@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         99802
>Category:       ports
>Synopsis:       x11-toolkits/gauche-gtk - fix for broken amd64 build
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jul 05 14:10:19 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Erik Greenwald
>Release:        FreeBSD 6.1-RELEASE i386
>Organization:
>Environment:
System: FreeBSD fenris 6.1-RELEASE FreeBSD 6.1-RELEASE #0: Sat May 13 14:38:02 EDT 2006 root@fenris:/usr/obj/usr/src/sys/FENRIS i386

>Description:

Building on amd64 fails due to non-relocatable symbols. This patch 
forces -fPIC onto the CFLAGS allowing it to build and function on 
non-x86 arch's. Tested on athlon and opteron, but I would imagine
that ppc, sparc, etc would also be fixed by this patch...

Thanks!

>How-To-Repeat:
>Fix:

--- x11-toolkits_gauche-gtk.patch begins here ---
Index: x11-toolkits/gauche-gtk/Makefile
===================================================================
RCS file: /home/ncvs/ports/x11-toolkits/gauche-gtk/Makefile,v
retrieving revision 1.28
diff -u -r1.28 Makefile
--- x11-toolkits/gauche-gtk/Makefile	11 Dec 2005 23:47:05 -0000	1.28
+++ x11-toolkits/gauche-gtk/Makefile	5 Jul 2006 14:00:56 -0000
@@ -7,7 +7,7 @@
 
 PORTNAME=	gauche
 PORTVERSION=	0.4.1
-PORTREVISION=	4
+PORTREVISION=	5
 CATEGORIES=	x11-toolkits scheme
 MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
 MASTER_SITE_SUBDIR=	gauche
@@ -27,6 +27,7 @@
 DOCSDIR=	${PREFIX}/share/doc/${PORTNAME}/gtk
 PLIST_SUB=	VERSION="`gauche-config -V`" \
 		TARGET="${MACHINE_ARCH}-portbld-freebsd${OSREL}"
+CFLAGS+=	-fPIC
 
 .if defined(WITH_GTKGLEXT)
 LIB_DEPENDS+=	gtkglext-x11-1.0.2:${PORTSDIR}/x11-toolkits/gtkglext
--- x11-toolkits_gauche-gtk.patch ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060705140918.6162C1CEBA>