From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14280 invoked by alias); 22 Nov 2004 07:59:07 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 14243 invoked from network); 22 Nov 2004 07:59:00 -0000 Received: from unknown (HELO mail.aaronwl.com) (68.228.0.128) by sourceware.org with SMTP; 22 Nov 2004 07:59:00 -0000 Received: from [70.182.14.214] (cdm-70-182-14-214.laft.cox-internet.com [70.182.14.214]) by mail.aaronwl.com (8.12.11/8.12.11) with ESMTP id iAM7x3Bs019218 for ; Mon, 22 Nov 2004 07:59:03 GMT Message-ID: <41A19CC2.5010102@aaronwl.com> Date: Mon, 22 Nov 2004 07:59:00 -0000 From: "Aaron W. LaFramboise" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.3) Gecko/20040910 MIME-Version: 1.0 To: gcc-help@gcc.gnu.org Subject: Enable dynamic for cross to sparc-sun-solaris2.8 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-SW-Source: 2004-11/txt/msg00148.txt.bz2 I've successfully built a crosscompiler to sparc-sun-solaris2.8 using GCC and binutils mainline, but I notice that the resulting compiler only creates static executables. How can I build the compiler so that it builds dynamic executables? I've noticed that all native dynamic binaries, both from Sun Workshop 6 and GCC, reference /usr/platform/SUNW,Sun-Blade-100/lib/libc_psr.so.1. I suspect I need to get the compiler to understand that it needs to link against this directory, but I have no idea how. It would somehow need to know that the target is SUNW,Sun-Blade-100, which isn't specified (as far as I know) by the target triple. This appears to be possible, though, as a web search shows that people before me have gotten this to work. $ uname -a SunOS host 5.8 Generic_108528-29 sun4u sparc SUNW,Sun-Blade-100 Aaron W. LaFramboise