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

[wishlist] Makefile: Add passed CFLAGS and LDFLAGS by environment to propsed flags #2

Closed
carnil opened this issue May 3, 2012 · 1 comment
Assignees

Comments

@carnil
Copy link
Contributor

carnil commented May 3, 2012

Hi

This is more a 'wishlist' bugreport: In Makefile for nodau there is:

CFLAGS ?= -Wall -g -pedantic -DTARGET="$(TARGET)" -DVERSION="$(VERSION)"
CLIBS ?= -lsqlite3 -lncurses -lcrypto

I would like to ask if it make sense, to change this to allow 'appending' some additional flags to the proposed, instead of completly overwrite if CFLAGS and CLIBS would be set. In Debian we are using dpkg-buildpackage to have some additional CFLAGS, CPPFLAGS, CXXFLAGS and LDFLAGS passed via environment (hardening flags).

Projects using e.g. automake use for this e.g. use of CFLAGS_AM AFAIK, for example. Cleary here using automake and co would be like using a sledgehammer to crack a nut.

What do you think? Would such a change be usefull too to others?

Please feel free to close this if this does not make sense or prefered to keep this way.

Regards,
Salvatore

@ghost ghost assigned TicklishHoneyBee May 4, 2012
@TicklishHoneyBee
Copy link
Owner

Hi Salvatore,

I just had a play with the makefile to put this in, as of the latest commit CFLAGS or CLIBS can be passed as environment variables. Doing so will extend the new NODAU_C{FLAG,LIB}S variables in the makefile.

Let me know if this suits your purposes, all I know is it still builds for me.

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