importC  with gc-sections not work on linux
    Dakota 
    dakota at gmail.com
       
    Mon Feb 26 12:28:26 UTC 2024
    
    
  
When I use importC to build a c library, there is a lot unused 
symbol missing.
I try add `-L--gc-sections` to dmd to workaround this issue.
I also try `-L-dead_strip` on macOS, it work as expected.
I do some google, some one suggestion use with 
`-ffunction-sections`, `-f fdata-sections`,  dmd seems not 
support it.
Any tips to work this around ?
    
    
More information about the Digitalmars-d-learn
mailing list