Date: Mon, 10 Mar 2003 18:16:42 -0800 From: Marcel Moolenaar <marcel@xcllnt.net> To: ia64@FreeBSD.org Subject: libobjc.a Message-ID: <20030311021642.GA1613@athlon.pn.xcllnt.net>
index | next in thread | raw e-mail
Gang,
I tried to build libobjc with -fpic on i386 and that failed. On ia64
it worked and solved the immediate problem mentioned in PR 49081.
However it caused a different bogon on ia64:
Linking tool autogsdoc ...
../Source/shared_obj/ia64/freebsd/gnu-gnu-gnu/libgnustep-base.so: undefined reference to `.L677'
This problem did not go away when I enabled building of libobjc.so
instead of building libobjc.a with -fpic.
Also, the port is highly non-LP64 and is casting between pointers
and integers to the extend that I doubt it will ever work.
The least impact change would be something like:
Index: Makefile
===================================================================
RCS file: /home/ncvs/src/gnu/lib/libobjc/Makefile,v
retrieving revision 1.15
diff -u -r1.15 Makefile
--- Makefile 30 Oct 2002 18:01:06 -0000 1.15
+++ Makefile 11 Mar 2003 02:14:47 -0000
@@ -18,6 +18,10 @@
sarray.h thr.h typedstream.h NXConstStr.h Object.h Protocol.h
INCSDIR=${INCLUDEDIR}/objc
+.if ${MACHINE_ARCH} == "ia64"
+CFLAGS += -fpic
+.endif
+
CFLAGS+= -fgnu-runtime -DHAVE_GTHR_DEFAULT -DIN_TARGET_LIBS
CFLAGS+= -I. -I${.CURDIR}/../../usr.bin/cc/cc_tools
CFLAGS+= -I${OBJCDIR}/objc -I${OBJCDIR}
But it's not going to make the port build on ia64...
--
Marcel Moolenaar USPA: A-39004 marcel@xcllnt.net
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ia64" in the body of the message
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030311021642.GA1613>
