From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28773 invoked by alias); 20 Feb 2010 16:13:38 -0000 Received: (qmail 28724 invoked by uid 48); 20 Feb 2010 16:13:21 -0000 Date: Sat, 20 Feb 2010 16:13:00 -0000 Subject: [Bug other/43130] New: GCC is not recognizing command line option "-mdynamic-no-pic" on Mac OS X 10.6 (x86_64) X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "hresquiveloa at gmail dot com" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2010-02/txt/msg02056.txt.bz2 Hi all. When I compile gcc-4.4.3 on Mac OS X 10.6 (x86_64) with this configuration: ---------------- ./configure --prefix=/usr/local/openseeslib/gcc/4.4.3/ --enable-languages=c,c++,objc,obj-c++,fortran --with-gmp=/usr/local/openseeslib/gmp/4.3.2/ --with-mpfr=/usr/local/openseeslib/mpfr/2.4.2/ --build=x86_64-apple-darwin10 --host=x86_64-apple-darwin10 --target=x86_64-apple-darwin10 ---------------- gcc will not recognize command line option "-mdynamic-no-pic". I mean, I am getting this error after trying to compile a program: ---------------- cc1: error: unrecognized command line option "-mdynamic-no-pic" ---------------- The default gcc (the one that comes with the OS, version 4.2.1) was configured with: ---------------- /var/tmp/gcc/gcc-5646.1~2/src/configure --disable-checking --enable-werror --prefix=/usr --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ --with-slibdir=/usr/lib --build=i686-apple-darwin10 --with-gxx-include-dir=/include/c++/4.2.1 --program-prefix=i686-apple-darwin10- --host=x86_64-apple-darwin10 --target=i686-apple-darwin10 ---------------- and it is able to recognize "-mdynamic-no-pic". I do not understand why "-mdynamic-no-pic" is not available in my gcc version when I actually used a configuration similar to the one used by Apple. I am guessing that Apple ran a modified gcc version to get this option available, does not it? In such a case, any idea how to get "-mdynamic-no-pic" in my gcc-4.4.3? Thank you! PS: About my computer: MacBook (3.1), Intel Core 2 Duo, Mac OS X 10.6.2 (Snow Leopard). -- Summary: GCC is not recognizing command line option "-mdynamic- no-pic" on Mac OS X 10.6 (x86_64) Product: gcc Version: 4.4.3 Status: UNCONFIRMED Severity: normal Priority: P3 Component: other AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: hresquiveloa at gmail dot com GCC build triplet: x86_64-apple-darwin10 GCC host triplet: x86_64-apple-darwin10 GCC target triplet: x86_64-apple-darwin10 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43130