> Do you know if LDLINKFLAGS comes before -shared or after? > > If we use LDLINKFLAGS to enable PIE, it has to come first, so that > -shared overrides it. We can handle this with -specs independently of > order, but not directly in ld. I think you can only statically build programs, and libraries are just source code from your HAREPATH. But I checked where the linker flags are put in the command line, and it's right after the $(LD) command, before other options like -o managed by hare(1). The object files and archives come last. Dridi _______________________________________________ packaging mailing list -- packaging@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to packaging-leave@xxxxxxxxxxxxxxxxxxxxxxx Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/packaging@xxxxxxxxxxxxxxxxxxxxxxx Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue