Skip to content

Set position of compiler flags #1090

Description

@ErdlingProductions

Hello!

I had the following issue, which I was not able to resolve elegantly.

For a mock, I needed to link lssl and lcrypto. I tried adding these compiler flags to the :flags section, but that did not quite work. For a successful compilation, these flags need to be given at the end of the command, something like this: gcc {in} -i {out} -lssl -lcrypto. When using the :flags section, those flags will always be placed directly after gcc, which leads to a failed compilation.

My workaround was to manually set up the linker under the :tools section, where I could place the crpyto flags last, which then compiled successfully.

I'd prefer using the :flags section, as I would not have to mess with the default linker settings, which for me are not immediately clear. It would also make the project setup simpler.

Am I missing an option or is this currently not possible?

Thanks and best regards!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions