www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.ldc - Remove import path from binary files

reply dog2002 <742617000027 aaathats3as.com> writes:
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.
Jan 23 2022
next sibling parent Kagamin <spam here.lot> writes:
I just moved the ldc folder to /srv
Jan 31 2022
prev sibling parent Kagamin <spam here.lot> writes:
Also use lld for linking, ld can't remove unused strings.
Feb 14 2022