Relocating GDC

David Friedman dvdfrdmn at users.ess-eff.net
Sun Jun 18 20:11:53 PDT 2006


Anders F Björklund wrote:
> 
> If you build GDC in say "/usr" or "/mingw", is it
> then possible to relocate the binaries and Phobos ?
> 
> I was under the impression that it should be able
> to work the location of Phobos out from where the
> gdc binary was located, e.g. "../include/d/?.?.?/"
> but that does not seem to be the case it seems...
> 
> 
> I had hoped for the gdcmac/gdcwin binaries to be
> relocatable from the default /usr and C:\MinGW,
> but it seems that they can't find e.g. "object.d"
> unless you specifically tell it where to search ?
> 
> And I was hoping to avoid having to set DFLAGS...
> 
> --anders

I haven't figured this out completely, but here goes:  To get relocation 
working under msys, the --prefix option must be the actual windows path 
and not the unix-style path.  So, --prefix=c:/msys/1.0 would work, but 
--prefix=/usr would not.

For some reason, the compilers in the mingw distribution can be 
relocated even though they are configured with --prefix=/mingw.  It 
might have something to do with the /mingw entry in /etc/fstab...  I 
have not yet tried building with --prefix=/mingw.  I have only tried 
other directories in the msys tree.

David







More information about the D.gnu mailing list