From owner-freebsd-questions@FreeBSD.ORG Thu Jun 5 13:57:51 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 447F31065679 for ; Thu, 5 Jun 2008 13:57:51 +0000 (UTC) (envelope-from seb.morand@gmail.com) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.177]) by mx1.freebsd.org (Postfix) with ESMTP id EF8A78FC19 for ; Thu, 5 Jun 2008 13:57:50 +0000 (UTC) (envelope-from seb.morand@gmail.com) Received: by py-out-1112.google.com with SMTP id p76so486898pyb.10 for ; Thu, 05 Jun 2008 06:57:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=xkteUfjH3XxLOs0OSkpxvlsgTuZs9hEH2D+jz38ZjZI=; b=jE+U7cW4w1ubhy+TjjLJLHuzXhVnQghE+er6qA9AEysHQM/DqzfYVpDtWfsHrSVBFI Bgzb0GnNf+GZeDhYaNtd06lGxkiYNxs780aRHNgTlgC+OYTIdWHnE0HLuc2ID3Hr8BDu ahcFTWAZ3/KWmqpX+s1qxL2ajHkI+mkpliMWg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=Z8U2pZyw4LsNGvphp5qVSG9fJ8deK9v4LsubIN7BKR9Ae9ToJ/qw1cyMS+eaQtUA7E I9/c4gRbQRdXX+XXFUZ24GKls8Hd24SPXACzq4i7chkwTUQvkwx5a/o3nsZkLRpsAeKK IJ7GMZ9nqezM+j31bsr9U4i9FoZBx8RrXQv4Q= Received: by 10.114.150.1 with SMTP id x1mr1525559wad.71.1212674269435; Thu, 05 Jun 2008 06:57:49 -0700 (PDT) Received: by 10.114.169.15 with HTTP; Thu, 5 Jun 2008 06:57:49 -0700 (PDT) Message-ID: <16d3abd60806050657p7669b92fu485ae027e3e2ba4@mail.gmail.com> Date: Thu, 5 Jun 2008 13:57:49 +0000 From: "=?ISO-8859-1?Q?S=E9bastien_Morand?=" To: "Tobias Hoellrich" , freebsd-questions@freebsd.org In-Reply-To: <20080605135015.GA52233@mech-aslap33.men.bris.ac.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20080605132106.GA51988@mech-aslap33.men.bris.ac.uk> <20080605135015.GA52233@mech-aslap33.men.bris.ac.uk> Cc: Subject: Re: size of executable - g95 vs gfortran42 - shared libs? 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: Thu, 05 Jun 2008 13:57:51 -0000 > % ldd *.out > g95.out: > libm.so.5 => /lib/libm.so.5 (0x280c5000) > libc.so.7 => /lib/libc.so.7 (0x280db000) > gf42.out: > libgfortran.so.2 => /usr/local/lib/gcc-4.2.4/libgfortran.so.2 (0x2807e000) > libm.so.5 => /lib/libm.so.5 (0x28103000) > libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x28119000) > libc.so.7 => /lib/libc.so.7 (0x28124000) > % In the first one the library fortran is directly included in your exec file, so the file is bigger. It looks like you have only a static version of the g95 installed, and then the library is included in the final program