stdcxx-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Sebor (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (STDCXX-194) [gcc/OS X 10.4.6] build error due to -shared option
Date Sun, 11 Jun 2006 21:42:30 GMT
     [ http://issues.apache.org/jira/browse/STDCXX-194?page=all ]
     
Martin Sebor resolved STDCXX-194:
---------------------------------

    Fix Version: 4.2
     Resolution: Fixed

Fixed by the referenced change.

> [gcc/OS X 10.4.6] build error due to -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
>      Fix For: 4.2

>
> 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


Mime
View raw message