Re: [Boost-bugs] [Boost C++ Libraries] #3916: implicit gcc fortran generator omits -fPIC when buildung shared libs

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #3916: implicit gcc fortran generator omits -fPIC when buildung shared libs
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-02-16 09:25:16


#3916: implicit gcc fortran generator omits -fPIC when buildung shared libs
---------------------------------------------+------------------------------
 Reporter: jan.boehme@… | Owner: vladimir_prus
     Type: Bugs | Status: new
Milestone: | Component: build
  Version: Boost Development Trunk | Severity: Problem
 Keywords: boost build gcc gfortran shared |
---------------------------------------------+------------------------------

Comment(by jan.boehme@…):

 Hi Volodya!

 Sorry for missing something. A rule like this is given:

 lib mixture : source.f csource.cpp ;
 {{{
 bjam -a -d2 mixture link=shared
 }}}
 leads to the following output:

 {{{
 gcc.compile.fortran bin/gcc-4.4.3/debug/source.o

   "g++" -O0 -fno-inline -Wall -g -c -o "bin/gcc-4.4.3/debug/source.o"
 "source.f"

 gcc.compile.c++ bin/gcc-4.4.3/debug/csource.o

     "g++" -ftemplate-depth-128 -O0 -fno-inline -Wall -g -fPIC -c -o
 "bin/gcc-4.4.3/debug/csource.o" "csource.cpp"

 gcc.link.dll bin/gcc-4.4.3/debug/libmixture.so
 }}}

 As you can see, only the cpp-object was compiled using "-fPIC".

 With "implicit" I want to say that the gnu fortran compiler will be used
 implicitly here. What if I want to use gnu for C++ only and the intel
 tools for fortran? I guess I would get errors caused by ambiguous
 generators.

 Cheers, Jan.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/3916#comment:2>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:02 UTC