Install Location (again)

Anders F Björklund afb at algonet.se
Thu Apr 20 03:02:40 PDT 2006


Philip Van Hoof wrote:

> If you are bundling and then packaging it (for a specific distribution),
> you should probably install it in $(prefix)/lib/gdc/ and create symlinks
> to $(prefix)/bin, $(prefix)/include and $(prefix)/lib as in that case
> the bundled gcc is support code for the application (gdc) itself.
> 
> For packages you really don't want to step outside of your $(prefix). So
> using /opt isn't really the right thing todo (for packages).

Nah, this was assuming that (ordinary) packages would not work,
since $(prefix)/bin/gcc and $(prefix)/lib/gcc would be "taken"...

> /usr/lib/gdc/bin/ and /usr/lib/gdc/lib/ and if possible /usr/include/
> and /usr/share and then create symlinks from /usr/lib/gdc/bin/
> to /usr/bin (but don't do such symlinks for files like gcc and c++ as
> such symlinks would certainly conflict with existing packages).
> 
> You could do a symlink like /usr/lib/gdc/bin/gcc to /usr/bin/gdc-gcc
> and /usr/lib/gdc/bin/gdb to /usr/bin/gdc-gdb . . . :-\

I'm not sure what creating those symlinks would add, beyond complexity ?
Adding prefixes is *one* option, but it's not a very attractive one...

--anders



More information about the D.gnu mailing list