Mark HPC ticks labels as dynamic

This enables GHC's PIC machinery for accessing tickboxes of other
packages correctly when building dynamic libraries. Previously
GHC was doing strange and wrong things in that situation. See #9012.

(cherry picked from commit 3285a3d5bc7419464f5d2e6cef7c3adb9bca65c3)