How to harden a gcc build for notarization

Hi. I'm building a non-App-Store executable with gcc via a Makefile.

I have signing set up. I also was able to submit the executable for notarization. However, it was rejected because it hasn't been "hardened".

How can I harden the executable in a way that works with my build process using Make?
Answered by galad87 in 664515022
Add --options=runtime to your codesign invocation.
Accepted Answer
Add --options=runtime to your codesign invocation.
Thanks. I will look into that.

That appears to be all there is to it. I hope it's really doing what it's supposed to. I didn't change any compile or link options.

How to harden a gcc build for notarization
 
 
Q