RejectedSoftware Forums

Sign up

Remove default link flag -L-fopenmp

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

Re: Remove default link flag -L-fopenmp

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.

Re: Remove default link flag -L-fopenmp

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").