ports/98386: [Maintainer Update] databases/gauche-gdbm fix for non-i386 arch's

Erik Greenwald erik at smluc.org
Fri Jun 2 16:30:22 UTC 2006


>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 at 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:



More information about the freebsd-ports-bugs mailing list