-
Notifications
You must be signed in to change notification settings - Fork 124
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Description
The compilation fails on Windows with flang-new because the option -fPIC is not supported.
Expected Behaviour
Compilation is expected to work fine.
Version of fpm
0.12.0
Platform and Architecture
Windows
Additional Information
The compiler flags are defined in fpm_compiler.F90.
From what I can tell, it seems that the -fPIC flag is added twice. Once in get_default_flags(self, release) and once in get_release_compile_flags(self%id, flags)/get_debug_compile_flags(self%id, flags). I think that option can be safely removed from the later two functions. The same applies to gnu based compilers.
perazz
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working