From owner-freebsd-python@FreeBSD.ORG Fri Mar 5 03:47:33 2004 Return-Path: Delivered-To: freebsd-python@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 923C016A4CE for ; Fri, 5 Mar 2004 03:47:33 -0800 (PST) Received: from phalanx.trit.org (phalanx.trit.org [63.198.170.138]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5C11A43D6D for ; Fri, 5 Mar 2004 03:47:33 -0800 (PST) (envelope-from dima@trit.org) Received: by phalanx.trit.org (Postfix, from userid 406) id F386165C0EC; Fri, 5 Mar 2004 11:47:32 +0000 (UTC) Received: from harpoon.trit.org (harpoon-wifi.trit.org [192.168.4.243]) by phalanx.trit.org (Postfix) with ESMTP id 20D6E65C0EB; Fri, 5 Mar 2004 11:47:30 +0000 (UTC) Received: from harpoon.trit.org (localhost [127.0.0.1]) by harpoon.trit.org (8.12.11/8.12.9) with ESMTP id i25BlTd0017232; Fri, 5 Mar 2004 11:47:29 GMT (envelope-from dima@trit.org) Received: (from dima@localhost) by harpoon.trit.org (8.12.11/8.12.11/Submit) id i25BlNOL017231; Fri, 5 Mar 2004 11:47:23 GMT (envelope-from dima@trit.org) X-Authentication-Warning: harpoon.trit.org: dima set sender to dima@trit.org using -f Date: Fri, 5 Mar 2004 11:47:23 +0000 From: Dima Dorfman To: Hye-Shik Chang Message-ID: <20040305114723.GD15971@trit.org> References: <20040305101837.GA78274@i18n.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040305101837.GA78274@i18n.org> User-Agent: Mutt/1.4i X-PGP-Key: 69FAE582 (http://www.trit.org/~dima/dima.asc) X-PGP-Fingerprint: B340 8338 7DA3 4D61 7632 098E 0730 055B 69FA E582 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.61 (1.212.2.1-2003-12-09-exp) on phalanx.trit.org X-Spam-Status: No, hits=0.0 required=5.0 tests=none autolearn=no version=2.61 cc: John Hay cc: python@FreeBSD.org Subject: Re: Python patch to install a shared library X-BeenThere: freebsd-python@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Mar 2004 11:47:33 -0000 Hye-Shik Chang wrote: > Per requested by many people, I made a patch to make python port > to install not only static library but also shared library and its > interpreter frontend. This obsoletes BUILD_SHARED option and the > port doesn't build PIC binary or library even for amd64 and ia64 > anymore. This means that you need to change linking with not static > but shared library if you need to embed python into your shared > library. This looks good to me, thanks! (I'll try it tomorrow.) I mentioned this in my previous message, but maybe someone else on the list has comments. The normal Python distribution puts libpython.so into $PREFIX/lib/pythonX.Y/config, and that's where some packages expected it to be (e.g., PostgreSQL's PL/Python (I made a port for it) normally expects it to be there). It's easy enough to change those packages to look in $PREFIX/lib, but I think a symlink from the config directory to the real libpython.so might be a good idea. I don't insist on this--just an idea :-). Thanks again! Dima.