From owner-freebsd-questions@FreeBSD.ORG Sat Oct 10 13:45:42 2009 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 872C0106566B for ; Sat, 10 Oct 2009 13:45:42 +0000 (UTC) (envelope-from a_best01@uni-muenster.de) Received: from zivm-exrelay1.uni-muenster.de (ZIVM-EXRELAY1.UNI-MUENSTER.DE [128.176.192.14]) by mx1.freebsd.org (Postfix) with ESMTP id 1D7588FC14 for ; Sat, 10 Oct 2009 13:45:41 +0000 (UTC) X-IronPort-AV: E=Sophos;i="4.44,537,1249250400"; d="scan'208";a="285158132" Received: from zivmaildisp1.uni-muenster.de (HELO ZIVMAILUSER03.UNI-MUENSTER.DE) ([128.176.188.85]) by zivm-relay1.uni-muenster.de with ESMTP; 10 Oct 2009 15:45:40 +0200 Received: by ZIVMAILUSER03.UNI-MUENSTER.DE (Postfix, from userid 149459) id 67E321B0750; Sat, 10 Oct 2009 15:45:40 +0200 (CEST) Date: Sat, 10 Oct 2009 15:45:39 +0200 (CEST) From: Alexander Best Sender: Organization: Westfaelische Wilhelms-Universitaet Muenster To: Alex R Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: freebsd-questions@FreeBSD.org Subject: Re: binutils 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: Sat, 10 Oct 2009 13:45:42 -0000 there's a project called binutils in p4 but i don't know anything about it (version, status, etc.). the problem with binutils from the portsdir is that even when it's installed gcc still uses the the base-binaries because gcc is statically linked. so in order to use the binutils from the ports dir you also have to install a gcc port (which gets linkey dynamically). a very dirty workaround is to install binutils from the ports, rename the base binary you don't want to use anymore and instead create a link to /usr/local/bin/*. here's an example. this way i could build mplayer with sse3 support. although the base gcc (4.2.1 in my case running 9-current) supports sse3, the base GNU assembler version (2.15) doesn't. what i did was to install the binutils port, `mv /usr/bin/as /usr/bin/as_old` and `ln -s /usr/local/bin/as /usr/bin/as`. now the base gcc picks up the new GNU assembler binary. cheers. alex oh...and i agree: binutils should be updated. actually a lot of base code needs to be updated. some of it hasn't been touched for over a decade. ;)