From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3680 invoked by alias); 4 May 2006 12:28:11 -0000 Received: (qmail 3659 invoked by uid 48); 4 May 2006 12:28:03 -0000 Date: Thu, 04 May 2006 12:28:00 -0000 Subject: [Bug driver/27419] New: '-static' for 'gcc libraries' only? X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "P dot Schaffnit at access dot rwth-aachen dot de" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2006-05/txt/msg00354.txt.bz2 List-Id: Hi! I would be interested in having the "gcc libraries" statically linked to my binary, but still use one shared-object (a commercial library for which no static version is available), so '-static' is not really an option, as far as I can tell... I haven't been able to pull this off, and got an answer from gcc-help@gcc.gnu.org that it's actually impossible... Nevertheless, as far as I can tell most commercial compiler allow this, so it's probably technically possible, if it's not too much trouble, I think it would be nice to have... Thanks! Philippe PS: I tried this with Using built-in specs. Target: x86_64-unknown-linux-gnu Configured with: /USER/philippe/Irix/Gcc_Sources/configure --prefix=/WORK/philippe/Tools/Gcc --enable-languages=c,fortran --with-mpfr=/WORK/philippe/Tools/Mpfr --with-gmp=/WORK/philippe/Tools/Gmp Thread model: posix gcc version 4.2.0 20060504 (experimental) PPS: it could be related to Bug#: 7516 -- Summary: '-static' for 'gcc libraries' only? Product: gcc Version: unknown Status: UNCONFIRMED Severity: enhancement Priority: P3 Component: driver AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: P dot Schaffnit at access dot rwth-aachen dot de http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27419