On 03/20/2015 04:23 AM, Steven Vancoillie wrote:
> I ran into a problem with SunPro Fortran compiler not being able to
> create a shared library since the -KPIC flag was missing. The patch
> that is attached fixes this. I didn't add a -KPIE as that doesn't
> exist for SunPro.

Applied, thanks:

 SunPro: Add position independent code flag for Fortran compiler
 http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=3556fb1b

> Looking at other compiler configurations, it seems it might be better
> to have a SunPro.cmake module that combines flags that are independent
> of the language?

Yes.  This refactoring has simply not been done for this compiler.
If you want to work on it, please note that such a module is not
loaded automatically and must be included by the per-language
modules.  This pattern is visible in several other compiler modules.

Thanks,
-Brad

-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake-developers

Reply via email to