From owner-freebsd-hackers Tue Oct 8 07:33:17 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id HAA29365 for hackers-outgoing; Tue, 8 Oct 1996 07:33:17 -0700 (PDT) Received: from genesis.atrad.adelaide.edu.au (genesis.atrad.adelaide.edu.au [129.127.96.120]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id HAA29358 for ; Tue, 8 Oct 1996 07:33:13 -0700 (PDT) Received: from msmith@localhost by genesis.atrad.adelaide.edu.au (8.6.12/8.6.9) id AAA10826; Wed, 9 Oct 1996 00:02:13 +0930 From: Michael Smith Message-Id: <199610081432.AAA10826@genesis.atrad.adelaide.edu.au> Subject: Re: linking against linux libs. To: kuku@gilberto.physik.rwth-aachen.de (Christoph Kukulies) Date: Wed, 9 Oct 1996 00:02:13 +0930 (CST) Cc: freebsd-hackers@freefall.freebsd.org In-Reply-To: <199610081350.OAA17387@gilberto.physik.rwth-aachen.de> from "Christoph Kukulies" at Oct 8, 96 02:50:45 pm MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Christoph Kukulies stands accused of saying: > > The question came up here (since CERN currently doesn't supply > support for their CERNLIB under FreeBSD) whether it would be possible > to link against linux libraries. Linux libraries, regrettably, will probably make Linux system calls. (Although I could be wrong there). Build a set of binutils with support for Linux-ELF and FreeBSD, something like : configure --target=i386-unknown-freebsd2.2,linux-unknown-elf Then use the resultant 'ar' to break the libraries up, 'objcopy' to convert the .o files to FreeBSD forat, then normal 'ar', 'lorder', 'ranlib' etc. to make them into libs that you can link with. > Otherwise I fear that the Pentium Pro I have acquired here has to > run under, sigh, Linux. Bletch. Note that it's not actually too hard to set up to build Linux binaries under FreeBSD. Whether this is desirable is arguable, but it certainly can be done. > I'm thinking of porting the libs to FreeBSD though (sources are That would be far and away the best move; paticularly since you will be able to take the moral high-ground with them over any spurious incompatibilities they may have introduced 8) > --Chris Christoph P. U. Kukulies kuku@gil.physik.rwth-aachen.de -- ]] Mike Smith, Software Engineer msmith@atrad.adelaide.edu.au [[ ]] Genesis Software genesis@atrad.adelaide.edu.au [[ ]] High-speed data acquisition and (GSM mobile) 0411-222-496 [[ ]] realtime instrument control (ph/fax) +61-8-267-3039 [[ ]] Collector of old Unix hardware. "Where are your PEZ?" The Tick [[