Thread overview
Remove import path from binary files
Jan 23, 2022
dog2002
Jan 31, 2022
Kagamin
Feb 14, 2022
Kagamin
January 23, 2022

Is it possible to remove modules' paths from the executable? I mean this:

strings app | grep "/home/"
/home/username/ldc2/bin/../import/std/stdio.d
/home/username/ldc2/bin/../import/std/utf.d

strip does not help. DMD does not add module names into the binary.

January 31, 2022

I just moved the ldc folder to /srv

February 14, 2022

Also use lld for linking, ld can't remove unused strings.