how to build project with locally compiled phobos

B4s1L3 b2.temp at gmx.com
Sat Sep 23 12:08:03 UTC 2017


On Saturday, 23 September 2017 at 11:58:40 UTC, Mengu wrote:
> hi all
>
> i've successfully compiled phobos master with gmake on freebsd. 
> (make fails, i've no clue at all as to why)
>
> how do i compile my project now against my local phobos with 
> dub? with plain dmd?
>
> i tried (in dub.sdl):
> - full path to new libphobos.so with -defaultlib to dflags
> - full path to new libphobos.so to lflags
>
> i checked with ldd and saw the original libphobos.so was used. 
> my current workaround is copying mine to /usr/lib.
>
> thanks in advanced.

Hello, what you want to do is certainly possible but... I'd 
rather build a full custom dmd+runtime+phobos with its own 
sc.conf file Why ?
- Easier to invoke dub w/ the option --compiler=path.
- The custom DMD will alsways use the right phobos (when not 
using dub).




More information about the Digitalmars-d-learn mailing list