Is it possible to remove default linker flags provided by dub when building a shared library. For some reason the addition of -L-fopenmp to the linker flags causes R to crash when trying to load the library.
Edwin
Is it possible to remove default linker flags provided by dub when building a shared library. For some reason the addition of -L-fopenmp to the linker flags causes R to crash when trying to load the library.
Edwin
On Tue, 25 Aug 2015 20:39:16 GMT, BlackEdder wrote:
Is it possible to remove default linker flags provided by dub when building a shared library. For some reason the addition of -L-fopenmp to the linker flags causes R to crash when trying to load the library.
Edwin
Apparently the -L-fopenmp is added due to
pkg-config --libs libR
I guess that is mostly outsides dub's control.
Am 25.08.2015 um 22:53 schrieb BlackEdder:
On Tue, 25 Aug 2015 20:39:16 GMT, BlackEdder wrote:
Is it possible to remove default linker flags provided by dub when building a shared library. For some reason the addition of -L-fopenmp to the linker flags causes R to crash when trying to load the library.
Edwin
Apparently the -L-fopenmp is added due to
pkg-config --libs libR
I guess that is mostly outsides dub's control.
The only workaround would be to remove "R" from the "libs" field and
instead directly specify the individual libraries directly as "dflags"
(or "lflags").