From stdcxx-dev-return-1490-apmail-incubator-stdcxx-dev-archive=incubator.apache.org@incubator.apache.org Mon Jun 05 20:37:33 2006 Return-Path: Delivered-To: apmail-incubator-stdcxx-dev-archive@www.apache.org Received: (qmail 23552 invoked from network); 5 Jun 2006 20:37:33 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 5 Jun 2006 20:37:33 -0000 Received: (qmail 76112 invoked by uid 500); 5 Jun 2006 20:37:33 -0000 Delivered-To: apmail-incubator-stdcxx-dev-archive@incubator.apache.org Received: (qmail 76060 invoked by uid 500); 5 Jun 2006 20:37:33 -0000 Mailing-List: contact stdcxx-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: stdcxx-dev@incubator.apache.org Delivered-To: mailing list stdcxx-dev@incubator.apache.org Received: (qmail 76049 invoked by uid 99); 5 Jun 2006 20:37:32 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Jun 2006 13:37:32 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [209.237.227.198] (HELO brutus.apache.org) (209.237.227.198) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Jun 2006 13:37:30 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id E7B147142A1 for ; Mon, 5 Jun 2006 20:36:30 +0000 (GMT) Message-ID: <27142105.1149539790946.JavaMail.jira@brutus> Date: Mon, 5 Jun 2006 20:36:30 +0000 (GMT+00:00) From: "Eric Lemings (JIRA)" To: stdcxx-dev@incubator.apache.org Subject: [jira] Commented: (STDCXX-194) GCC compiler on Mac OS X 10.4.6 Tiger (Darwin) does not understand -shared option. In-Reply-To: <3749072.1149270089856.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/STDCXX-194?page=comments#action_12414849 ] Eric Lemings commented on STDCXX-194: ------------------------------------- See also http://developer.apple.com/documentation/DeveloperTools/gcc-4.0.1/gcc/Link-Options.html#Link-Options > GCC compiler on Mac OS X 10.4.6 Tiger (Darwin) does not understand -shared option. > ---------------------------------------------------------------------------------- > > Key: STDCXX-194 > URL: http://issues.apache.org/jira/browse/STDCXX-194 > Project: C++ Standard Library > Type: Bug > Components: Build > Versions: 4.1.3, 4.1.4 > Environment: Darwin machine.local 8.6.1 Darwin Kernel Version 8.6.1: Tue Mar 7 16:55:45 PST 2006; root:xnu-792.9.22.obj~1/RELEASE_I386 i386 i386 > Reporter: Eric Lemings > > Sample build: > machine:~/Work/stdcxx user$ make BUILDDIR=~/Build/stdcxx BUILDMODE=debug,shared,pthreads > machine:~/Work/stdcxx user$ cd ~/Build/stdcxx > machine:~/Build/stdcxx user$ find . -exec grep -H -- -shared {} \; > ./GNUmakefile: # not applicable to non-shared builds > ./include/config.log:gcc collapse_static_locals.lib.so.o -lm -lsupc++ -lgcc_eh -shared -o collapse_static_locals.lib.so > ./include/config.log:i686-apple-darwin8-gcc-4.0.1: unrecognized option '-shared' > ./include/config.log:gcc collapse_template_locals.lib.so.o -lm -lsupc++ -lgcc_eh -shared -o collapse_template_locals.lib.so > ./include/config.log:i686-apple-darwin8-gcc-4.0.1: unrecognized option '-shared' > ./include/config.log:gcc collapse_template_statics.lib.so.o -lm -lsupc++ -lgcc_eh -shared -o collapse_template_statics.lib.so > ./include/config.log:i686-apple-darwin8-gcc-4.0.1: unrecognized option '-shared' > ./include/config.log:gcc extern_inline.lib.so.o -lm -lsupc++ -lgcc_eh -shared -o extern_inline.lib.so > ./include/config.log:i686-apple-darwin8-gcc-4.0.1: unrecognized option '-shared' > ./include/config.log:gcc lib_exceptions.lib.so.o -lm -lsupc++ -lgcc_eh -shared -o lib_exceptions.lib.so > ./include/config.log:i686-apple-darwin8-gcc-4.0.1: unrecognized option '-shared' > ./include/config.log:gcc collapse_static_locals.lib.so.o -lm -lsupc++ -lgcc_eh -shared -o collapse_static_locals.lib.so > ./include/config.log:i686-apple-darwin8-gcc-4.0.1: unrecognized option '-shared' > ./include/config.log:gcc collapse_template_locals.lib.so.o -lm -lsupc++ -lgcc_eh -shared -o collapse_template_locals.lib.so > ./include/config.log:i686-apple-darwin8-gcc-4.0.1: unrecognized option '-shared' > ./include/config.log:gcc collapse_template_statics.lib.so.o -lm -lsupc++ -lgcc_eh -shared -o collapse_template_statics.lib.so > ./include/config.log:i686-apple-darwin8-gcc-4.0.1: unrecognized option '-shared' > ./include/config.log:gcc extern_inline.lib.so.o -lm -lsupc++ -lgcc_eh -shared -o extern_inline.lib.so > ./include/config.log:i686-apple-darwin8-gcc-4.0.1: unrecognized option '-shared' > ./include/config.log:gcc lib_exceptions.lib.so.o -lm -lsupc++ -lgcc_eh -shared -o lib_exceptions.lib.so > ./include/config.log:i686-apple-darwin8-gcc-4.0.1: unrecognized option '-shared' > ./include/vars.sh:LDSOFLAGS=-shared ; export LDSOFLAGS > ./makefile.in:LDSOFLAGS = -shared > Here's a patch for it: > *** gcc.config.2 Fri Jun 2 10:26:53 2006 > --- gcc.config Fri Jun 2 11:04:19 2006 > *************** > *** 62,68 **** > --- 62,71 ---- > endif > endif > > + # No -shared option for GCC on Mac OS X (Darwin). > + ifneq ($(OSNAME),Darwin) > LDSOFLAGS = -shared > + endif > > # -fPIC needed both to compile and link shared libs on HP-UX 11 > ifeq ($(OSNAME),HP-UX) -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira