Devac/fortrancl

build shared libs and install pc file

GoogleCodeExporter opened this issue · 4 comments

I would like to propose a few enhancement to the build system:
 1) allow to build both shared and static libs, (while defaulting to shared) [1]
 2) install .pc file
 3) don't install module to flat namespace.

Reasoning behind 1) is mostly described in provided link, 2) is just for 
convience, 3) will allow in the future to install simultaneously multiple 
modules for multiple compilers.
Please note that supplied patch also fixes possible parallel build issues.

Original issue reported on code.google.com by xarthisi...@gmail.com on 15 Jan 2012 at 1:35

Attachments:

I've forgot to add link
[1] http://www.akkadia.org/drepper/no_static_linking.html

Sorry 'bout that

Original comment by xarthisi...@gmail.com on 15 Jan 2012 at 2:47

Thanks for the patch. 

I integrated it into the repository with some changes:

1) I set the default to static, this makes installation simpler for basic 
users. Advanced users can add --enable-shared.
3) I don't see what you gain from installing the module under a subdirectory. 
The library file is also Fortran-compiler dependent, so for multiple compilers 
you will will need multiple installation directories anyway (maybe I am wrong).

Original comment by xavier.andrade.valencia on 20 Jan 2012 at 12:20

  • Changed state: Started
  • Added labels: Type-Enhancement
  • Removed labels: Type-Defect
re 1) ok
Re 3) adding "fortrancl_includedir = $(includedir)" is more than enough to 
suite everyone's need, so that's also fine

Original comment by xarthisi...@gmail.com on 20 Jan 2012 at 5:59

Original comment by xavier.andrade.valencia on 1 Apr 2012 at 3:08

  • Changed state: Fixed