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] Closed: (STDCXX-194) [gcc/OS X 10.4.6] build error due to -shared option
Date Wed, 09 May 2007 04:19:15 GMT

     [ https://issues.apache.org/jira/browse/STDCXX-194?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Martin Sebor closed STDCXX-194.
-------------------------------

    Assignee: Martin Sebor

> [gcc/OS X 10.4.6] build error due to -shared option
> ---------------------------------------------------
>
>                 Key: STDCXX-194
>                 URL: https://issues.apache.org/jira/browse/STDCXX-194
>             Project: C++ Standard Library
>          Issue Type: Bug
>          Components: Build
>    Affects Versions: 4.1.4, 4.1.3
>         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
>         Assigned To: Martin Sebor
>             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.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message