From owner-freebsd-questions@FreeBSD.ORG Tue Jun 5 10:57:25 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D09B316A421 for ; Tue, 5 Jun 2007 10:57:25 +0000 (UTC) (envelope-from robin@reportlab.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.168]) by mx1.freebsd.org (Postfix) with ESMTP id 7115413C448 for ; Tue, 5 Jun 2007 10:57:25 +0000 (UTC) (envelope-from robin@reportlab.com) Received: by ug-out-1314.google.com with SMTP id u2so146054uge for ; Tue, 05 Jun 2007 03:57:24 -0700 (PDT) Received: by 10.82.170.2 with SMTP id s2mr8364312bue.1181039033225; Tue, 05 Jun 2007 03:23:53 -0700 (PDT) Received: from ?192.168.0.3? ( [217.196.247.135]) by mx.google.com with ESMTP id 2sm1216037nfv.2007.06.05.03.23.51; Tue, 05 Jun 2007 03:23:52 -0700 (PDT) Message-ID: <466539B7.3000004@chamonix.reportlab.co.uk> Date: Tue, 05 Jun 2007 11:23:51 +0100 From: Robin Becker User-Agent: Thunderbird 2.0.0.0 (Windows/20070326) MIME-Version: 1.0 To: freebsd-questions@FreeBSD.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: complete static link X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Jun 2007 10:57:25 -0000 I'm trying to get a particular utility compiled statically so I can embed it in a distribution package. It's just a part of lib tiff. I tried various things with ./configure --disable-shared --enable-static, but couldn't eliminate the dynamic dependencies. In the end I tried this gcc -O2 -Wall -W -o tiffcp tiffcp.o ../libtiff/.libs/libtiff.a ../port/.libs/libport.a /usr/lib/libz.a /usr/lib/libm.a /usr/lib/libc.a and although the libz/libm dependencies are gone I still depend on libc.so.6 (or 4). Is there some esy way to do this? Also I get warnings about f_prealloc anyone know what that means? -- Robin Becker