From owner-cvs-all@FreeBSD.ORG Sun Apr 11 18:16:17 2004 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BE9C716A4CE; Sun, 11 Apr 2004 18:16:17 -0700 (PDT) Received: from mta7.pltn13.pbi.net (mta7.pltn13.pbi.net [64.164.98.8]) by mx1.FreeBSD.org (Postfix) with ESMTP id A2E7743D3F; Sun, 11 Apr 2004 18:16:17 -0700 (PDT) (envelope-from kris@obsecurity.org) Received: from obsecurity.dyndns.org (2f291912043baef5ed9ef044c2ba90aa@adsl-67-115-73-128.dsl.lsan03.pacbell.net [67.115.73.128])i3C1GDnr022343; Sun, 11 Apr 2004 18:16:13 -0700 (PDT) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id C9427533F6; Sun, 11 Apr 2004 18:16:12 -0700 (PDT) Date: Sun, 11 Apr 2004 18:16:12 -0700 From: Kris Kennaway To: Jun Kuriyama Message-ID: <20040412011612.GA2031@xor.obsecurity.org> References: <200404120040.i3C0e7tB046017@repoman.freebsd.org> <20040412004932.GA1203@xor.obsecurity.org> <7mlll2vwab.wl@black.imgsrc.co.jp> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="FL5UXtIhxfXey3p5" Content-Disposition: inline In-Reply-To: <7mlll2vwab.wl@black.imgsrc.co.jp> User-Agent: Mutt/1.4.2.1i cc: cvs-ports@FreeBSD.org cc: ports-committers@FreeBSD.org cc: cvs-all@FreeBSD.org cc: Kris Kennaway Subject: Re: cvs commit: ports/net/libpdtp Makefile X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Apr 2004 01:16:17 -0000 --FL5UXtIhxfXey3p5 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Apr 12, 2004 at 10:07:24AM +0900, Jun Kuriyama wrote: > At Sun, 11 Apr 2004 17:49:32 -0700, > Kris Kennaway wrote: > > > Fix build on ia64 and amd64. > >=20 > > > | +CFLAGS+=3D -fpic > >=20 > > Thanks, but this is the wrong solution since it will also compile the > > lib.a with -fpic. >=20 > Hmm, I don't understand what we should do. Should I use -fpic only at > building *.o objects, not at linking stage (shared and static)? You need to make sure that the objects are built separately for the lib.a and lib.so cases, and the latter use -fPIC. I've fixed a number of other ports this way, so you can check the commit logs for pointers to similar fixes. Kris --FL5UXtIhxfXey3p5 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFAee3cWry0BWjoQKURAjPiAKDj+Snn3vyxMuZr7ai6oavlBUXxmQCePTp/ Cnj2/XkbAR9q+IKXNLKXx4s= =QGrN -----END PGP SIGNATURE----- --FL5UXtIhxfXey3p5--