After emerge dev-perl/File-LibMagic-1.150.0 I got QA Notice:
* QA Notice: Files built without respecting LDFLAGS have been detected
* Please include the following list of files in your report:
Created attachment 659384 [details]
Please attach a full build log.
( Also, test with a more recent version, and report its build log, as 1.150.0 will likely be pruned in the next few months after a newer version is stabilized )
... and reopen this ticket (Status:UNCONFIRMED) afterwards.