Date: Sat, 4 Dec 2004 09:38:10 +0100 From: Roland Smith <rsmith@xs4all.nl> To: freebsd-amd64@freebsd.org Subject: Re: OT Re: AMD64- Solutions Message-ID: <20041204083810.GA27700@slackbox.xs4all.nl> In-Reply-To: <20041203182029.GD27940@dragon.nuxi.com> References: <conljc$1pep$1@FreeBSD.csie.NCTU.edu.tw> <20041203011408.163FE106C28@FreeBSD.csie.NCTU.edu.tw> <20041203045849.GA15850@troutmask.apl.washington.edu> <41AFF4BF.7070503@iki.fi> <20041203060256.GA16165@troutmask.apl.washington.edu> <20041203182029.GD27940@dragon.nuxi.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--wac7ysb48OaltWcw Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Dec 03, 2004 at 10:20:29AM -0800, David O'Brien wrote: > On Thu, Dec 02, 2004 at 10:02:56PM -0800, Steve Kargl wrote: > > If you already have matlab code in house, then check out octave. > > You can find it in ports/math/octave. I have been able to run=20 > > most matlab codes given to me by others with little or no changes. >=20 > Have you used octave on AMD64 by chance? The port is > BROKEN=3D"Does not build on amd64 (Shared libraries must be compiled with= -fPIC)" > Do you have a local patch by chance? I've used the patch to the makefile included below to build it from ports. ------------------------ octave-mak.patch ------------------------ --- Makefile.orig Fri Dec 3 20:36:40 2004 +++ Makefile Sat Dec 4 09:05:08 2004 @@ -23,10 +23,6 @@ =20 .include <bsd.port.pre.mk> =20 -.if ${ARCH} =3D=3D "amd64" -BROKEN=3D "Does not build on amd64 (Shared libraries must be compiled wit= h -fPIC)" -.endif - .if ${PORTOBJFORMAT} =3D=3D "elf" GNU_HOST=3D ${ARCH}-portbld-freebsd${OSREL} .else @@ -38,11 +34,15 @@ BLAS_LIBS=3D "-L${LOCALBASE}/lib -lf77blas -lcblas -latlas" USE_GMAKE=3D yes GNU_CONFIGURE=3D yes -USE_REINPLACE=3D yes =20 -CONFIGURE_ARGS=3D --host=3D${GNU_HOST} \ - --with-fftw --with-blas=3D${BLAS_LIBS} --with-lapack=3D-lalapack \ - --enable-shared +CONIGURE_ARGS=3D --host=3D${GNU_HOST} \ + --with-fftw --with-blas=3D${BLAS_LIBS} --with-lapack=3D-lalapack +.if ${ARCH} =3D=3D "amd64" +CONFIGURE_ARGS+=3D --disable-shared +.else +CONFIGURE_ARGS+=3D --enable-shared +.endif + CONFIGURE_ENV=3D CFLAGS=3D"${CFLAGS} -I${LOCALBASE}/include" \ LDFLAGS=3D"${LDFLAGS} -L${LOCALBASE}/lib" \ CPPFLAGS=3D"${CPPFLAGS} -I${LOCALBASE}/include" \ @@ -62,12 +62,6 @@ @${RM} -f ${WRKSRC}/doc/interpreter/octave.info* @${RM} -f ${WRKSRC}/doc/liboctave/liboctave.info* post-install: - ${RM} ${PREFIX}/bin/octave - @${CP} ${FILESDIR}/octave ${WRKDIR} - @${REINPLACE_CMD} -e 's,%%PREFIX%%,${PREFIX},g ; \ - s,%%OCTAVE_VERSION%%,${OCTAVE_VERSION},g' \ - ${WRKDIR}/octave - ${INSTALL_SCRIPT} ${WRKDIR}/octave ${PREFIX}/bin ${INSTALL_DATA} ${WRKSRC}/doc/liboctave/liboctave.info ${PREFIX}/info install-info --entry=3D'* Octave: (octave). Interactive language for nume= rical computations.' $(PREFIX)/info/octave.info $(PREFIX)/info/dir install-info --entry=3D'* LibOctave: (liboctave). C++ class library for O= ctave.' $(PREFIX)/info/liboctave.info $(PREFIX)/info/dir ------------------------ octave-mak.patch ------------------------ --=20 R.F. Smith /"\ ASCII Ribbon Campaign r s m i t h @ x s 4 a l l . n l \ / No HTML/RTF in email http://www.xs4all.nl/~rsmith/ X No Word docs in email / \ Respect for open standards --wac7ysb48OaltWcw Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQFBsXdyEnfvsMMhpyURAtwyAJ9C4tDGRCfoAb/1mmt4Ao1mE7ualQCeK2dl GQKdjI19Z2hj12LfUyUxeHo= =NzYF -----END PGP SIGNATURE----- --wac7ysb48OaltWcw--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20041204083810.GA27700>