Return-Path: Delivered-To: apmail-incubator-stdcxx-dev-archive@www.apache.org Received: (qmail 31055 invoked from network); 2 Jun 2006 17:42:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 2 Jun 2006 17:42:30 -0000 Received: (qmail 84497 invoked by uid 500); 2 Jun 2006 17:42:28 -0000 Delivered-To: apmail-incubator-stdcxx-dev-archive@incubator.apache.org Received: (qmail 84422 invoked by uid 500); 2 Jun 2006 17:42:28 -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 84263 invoked by uid 99); 2 Jun 2006 17:42:27 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Jun 2006 10:42:27 -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; Fri, 02 Jun 2006 10:42:24 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id D1E0B7141E6 for ; Fri, 2 Jun 2006 17:41:29 +0000 (GMT) Message-ID: <3749072.1149270089856.JavaMail.jira@brutus> Date: Fri, 2 Jun 2006 17:41:29 +0000 (GMT+00:00) From: "Eric Lemings (JIRA)" To: stdcxx-dev@incubator.apache.org Subject: [jira] Created: (STDCXX-194) GCC compiler on Mac OS X 10.4.6 Tiger (Darwin) does not understand -shared option. 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 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