Skip site navigation (1)Skip section navigation (2)
Date:      Fri,  2 Jun 2006 11:28:14 -0500 (CDT)
From:      Erik Greenwald <erik@smluc.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        erik@math.missouristate.edu
Subject:   ports/98386: [Maintainer Update] databases/gauche-gdbm fix for non-i386 arch's
Message-ID:  <20060602162814.E01081CEBA@phoenix.smluc.org>
Resent-Message-ID: <200606021630.k52GUKIB047100@freefall.freebsd.org>

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

>Number:         98386
>Category:       ports
>Synopsis:       [Maintainer Update]  databases/gauche-gdbm  fix for non-i386 arch's
>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:   Fri Jun 02 16:30:20 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:

Doesn't compile on non-ia32 due to missing -fPIC in building a 
library. This patch adds the -fPIC. (Tested on amd64)

>How-To-Repeat:
>Fix:

--- databases_gauche-gdbm.patch begins here ---
Index: databases/gauche-gdbm/Makefile
===================================================================
RCS file: /home/ncvs/ports/databases/gauche-gdbm/Makefile,v
retrieving revision 1.34
diff -u -r1.34 Makefile
--- databases/gauche-gdbm/Makefile	4 May 2006 21:39:57 -0000	1.34
+++ databases/gauche-gdbm/Makefile	2 Jun 2006 16:23:00 -0000
@@ -36,11 +36,11 @@
 do-build:
 	cd ${WRKSRC} && ${LOCALBASE}/bin/gauche-config --fixup-extension gdbm
 	cd ${WRKSRC} && ${LOCALBASE}/bin/gosh genstub gdbm.stub
-	cd ${WRKSRC} && ${CC} ${CFLAGS} -c gdbm_head.c
-	cd ${WRKSRC} && ${CC} ${CFLAGS} -c gdbm_tail.c
-	cd ${WRKSRC} && ${CC} ${CFLAGS} -c -I${LOCALBASE}/include \
+	cd ${WRKSRC} && ${CC} ${CFLAGS} -fPIC  -c gdbm_head.c
+	cd ${WRKSRC} && ${CC} ${CFLAGS} -fPIC  -c gdbm_tail.c
+	cd ${WRKSRC} && ${CC} ${CFLAGS} -fPIC  -c -I${LOCALBASE}/include \
 		-I'${LOCALBASE}/lib/gauche/${PORTVERSION}/include' gdbm.c
-	cd ${WRKSRC} && ${CC} ${CFLAGS} ${LDFLAGS} -shared -Wl,-x -o gdbm.so \
+	cd ${WRKSRC} && ${CC} ${CFLAGS} ${LDFLAGS} -fPIC  -shared -Wl,-x -o gdbm.so \
 		-Wl,-soname,gdbm.so gdbm.o gdbm_head.o gdbm_tail.o \
 		-L${LOCALBASE}/lib -lgdbm
 
--- databases_gauche-gdbm.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?20060602162814.E01081CEBA>