Skip to content

Allow OPTFLAGS to override default CFLAGS#15

Open
posophe wants to merge 1 commit intofujita:masterfrom
posophe:master
Open

Allow OPTFLAGS to override default CFLAGS#15
posophe wants to merge 1 commit intofujita:masterfrom
posophe:master

Conversation

@posophe
Copy link

@posophe posophe commented Sep 18, 2015

When building a package the build system might be wanting to
pass in some additional CFLAGS. So allow for the OPTFLAGS setting
to override the default CFLAGS.

When building a package the build system might be wanting to
pass in some additional CFLAGS. So allow for the OPTFLAGS setting
to override the default CFLAGS.
@roidayan
Copy link
Contributor

I'm not sure this is needed. you can export CFLAGS with more flags before executing make. i.e.:
CFLAGS="--additional-flag" make

@posophe
Copy link
Author

posophe commented Jul 19, 2016

Not strictly needed, indeed. But it makes maintenance more comfortable. Other opensource projects support this way, this is how we generally build our packages, without any extra hack.

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

Successfully merging this pull request may close these issues.

2 participants