Cannot link with libphobos2.a with GCC 6.2 on Ubuntu 16.10
Nordlöw via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Mon Oct 17 01:39:55 PDT 2016
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.
More information about the Digitalmars-d-learn
mailing list