这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@zdohnal
Copy link
Member

@zdohnal zdohnal commented Nov 10, 2021

GCC can provide even stronger stack protection, let's use it if
available. Otherwise fall back to -fstack-protector.

I found this during development on centos stream 9 - I wasn't able to pass -fstack-protector-strong (which is one of the reqs in centos stream 9/RHEL 9) into compiled libcups.so.2, then found out gcc chose more generic -fstack-protector because of configure check.

@zdohnal zdohnal added the enhancement New feature or request label Nov 10, 2021
@zdohnal zdohnal added this to the v2.4 milestone Nov 10, 2021
Copy link
Member

@michaelrsweet michaelrsweet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No problem with supporting the increased stack protection option, note in my comments that we have some old LSB cruft that can be removed...

@zdohnal Don't forget to run "autoconf -f" and commit the new configure script after this change is merged...

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I checked and we can drop the LSB_BUILD check - none of the other LSB options are left so this is "dead code"...

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, thanks for the check! I'll remove it as well then.

GCC can provide even stronger stack protection, let's use it if
available. Otherwise fall back to -fstack-protector.
@zdohnal zdohnal force-pushed the fstack-protector-strong branch from 19dcc73 to 46a4016 Compare November 10, 2021 16:07
@zdohnal
Copy link
Member Author

zdohnal commented Nov 10, 2021

I should be fixed now, please recheck - I didn't remove any other LSB code there.

@zdohnal zdohnal merged commit bde5fcf into OpenPrinting:master Nov 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants