Quote:
Originally Posted by knc1
Another little chore . . . .
FAT-32 does not support symbolic links (required to get the symantics of *nix library sonames correct).
There are (at least) two ways to deal with that:
FAT{,16,32} does partially support hard-links (at least until you run dosfsck on it) ;
The target library of the links could be copied to each of the less specific names (makes a large increase in disk usage, but we have 3Gbytes) ;
or
some combination of the above.
It would probably be appropriate to do that in a custom, post-build, script.
Decisions, decisions, decisions. . . .
|
On a FAT, your "hard-link" is called a "cross-link". Disk checkers would report that as an error. Cross-linking is a common method of de-duplication used inside .ISO images, which is safe to do when they are mounted read-only (or burned onto read-only media). On a FAT partition it would be better to just provide multiple copies (which is how I did it for my SDL port).
I like how cygwin replaces symlinks with windows shortcuts, but that only works in a cygwin shell. We only have 3GB when the USB drive is not already full of other stuff (like mine), so replacing symlinks with multiple is not an ideal solution, even though it seems to be the most reliable option available on a FAT partition.