From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21641 invoked by alias); 3 Oct 2011 06:35:26 -0000 Received: (qmail 21631 invoked by uid 22791); 3 Oct 2011 06:35:25 -0000 X-SWARE-Spam-Status: No, hits=-1.4 required=5.0 tests=AWL,BAYES_00,DKIM_ADSP_CUSTOM_MED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED,RP_MATCHES_RCVD,SPF_HELO_PASS,TW_BJ,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org Received: from lo.gmane.org (HELO lo.gmane.org) (80.91.229.12) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 03 Oct 2011 06:35:08 +0000 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1RAc7G-0001G8-TW for gcc-help@gcc.gnu.org; Mon, 03 Oct 2011 08:35:06 +0200 Received: from 103.85-200-56.bkkb.no ([85.200.56.103]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 03 Oct 2011 08:35:06 +0200 Received: from christer.solskogen by 103.85-200-56.bkkb.no with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 03 Oct 2011 08:35:06 +0200 To: gcc-help@gcc.gnu.org From: Christer Solskogen Subject: gcc on solaris Date: Mon, 03 Oct 2011 06:35:00 -0000 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:6.0.2) Gecko/20110902 Thunderbird/6.0.2 X-IsSubscribed: yes Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2011-10/txt/msg00007.txt.bz2 Hi! The gcc that comes with Solaris is quite old, so I figured that I'll compile my own. Compiling went fine, and that compiler even compiled binutils and gawk without troubles. Then I went on installing postgresql (which also went fine) and running "make check" and suddenly bailed on because of missing libgcc_so.1. Aha! So I need to add /path/to/libgcc to "crle" (something like ld.so.conf on linux) But no. That did not go well. Then I tried objdump. Compiling this test.c with Solaris gcc I got: objdump -x a.out | grep -i rpath RPATH /usr/ccs/lib:/lib:/usr/lib:/usr/sfw/lib But with my own built gcc, I got nothing. So, how do I add that to my own gcc? I noticed that gcc -v on the solaris "version" said something about rpath: /usr/sfw/bin/gcc -v Reading specs from /usr/sfw/lib/gcc/i386-pc-solaris2.10/3.4.3/specs Configured with: /builds/sfw10-gate/usr/src/cmd/gcc/gcc-3.4.3/configure --prefix=/usr/sfw --with-as=/usr/sfw/bin/gas --with-gnu-as --with-ld=/usr/ccs/bin/ld --without-gnu-ld --enable-languages=c,c++ --enable-shared Thread model: posix gcc version 3.4.3 (csl-sol210-3_4-branch+sol_rpath) Any clue?