Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable OPTFLAGS to pass custom compile flags to Makefile #71

Closed
pbleser opened this issue Oct 11, 2011 · 1 comment
Closed

Enable OPTFLAGS to pass custom compile flags to Makefile #71

pbleser opened this issue Oct 11, 2011 · 1 comment

Comments

@pbleser
Copy link

pbleser commented Oct 11, 2011

Most distributions use custom compiler flags across all packages.
The following patch introduces the OPTFLAGS Makefile variable, which defaults to upstream's settings (-g -O2) but can be overridden by packagers (e.g. on openSUSE/SLE we use "-fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g -Wextra")

https://api.opensuse.org/public/source/X11:Utilities/feh/feh-makefile_optflags.patch?rev=45ef01c1172dd974f39fed346d43073d

Note that it also masks the output of cc for computing dependencies.

@derf
Copy link
Owner

derf commented Dec 23, 2011

Unable to reproduce with both gcc 4.6.2 and clang 3.0

Closing since I got no response to my question in #70.

@derf derf closed this as completed Dec 23, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants