On Monday, 17 October 2016 at 05:55:55 UTC, tcak wrote:
So, I added

-defaultlib=libphobos2.so -fPIC

Where did you add it?

To the command-line or Makefile?

And which Make variable did you change?

I've tried

    make -f posix.mak MODEL_FLAG="-fPIC"

but C++ compilations still fail with complaining about libphobos2.a not being compiled with -fPIC flag.

-defaultlib is a DMD flag so that has not effect with the C++ compilations.

This must be fixed in the DMD Makefiles!

I you only tell me what to do I can make a PR to DMD that fixes these things.

Reply via email to