use --no-as-needed, probably needed