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

Makefile: undefine _FORTIFY_SOURCE prior using it #2644

Merged
merged 1 commit into from Feb 28, 2019
Merged

Makefile: undefine _FORTIFY_SOURCE prior using it #2644

merged 1 commit into from Feb 28, 2019

Conversation

ghost
Copy link

@ghost ghost commented Feb 28, 2019

Currently, we are enforcing the _FORTIFY_SOURCE=2 without any
previous detection if the macro has been already defined, e.g.
by environment, or is just enabled by compiler by default on
some distributions (e.g. Gentoo).

This could result in the error like this:
:0:0: error: "_FORTIFY_SOURCE" redefined [-Werror]
: note: this is the location of the previous definition

Tracked-On: #2344
Signed-off-by: Tw wei.tan@intel.com
Reviewed-by: Binbin Wu binbin.wu@intel.com
Acked-by: Yin Fengwei fengwei.yin@intel.com

@ghost ghost requested review from anthonyzxu and dongyaozu as code owners February 28, 2019 02:14
Currently, we are enforcing the _FORTIFY_SOURCE=2 without any
previous detection if the macro has been already defined, e.g.
by environment, or is just enabled by compiler by default on
some distributions (e.g. Gentoo).

This could result in the error like this:
<command-line>:0:0: error: "_FORTIFY_SOURCE" redefined [-Werror]
<built-in>: note: this is the location of the previous definition

Tracked-On: #2344
Signed-off-by: Tw <wei.tan@intel.com>
Reviewed-by: Binbin Wu <binbin.wu@intel.com>
Acked-by: Yin Fengwei <fengwei.yin@intel.com>
@ghost ghost added the Coding Guidelines: PASS Coding Guidelines Manual Check label Feb 28, 2019
@ghost
Copy link

ghost commented Feb 28, 2019

No new violations to the coding guideline detected.
No New Name Conflict

No New Function Declaration/Definition Mismatch

@acrnsi acrnsi added the Auto_Merge_Pass it is ready to merge label Feb 28, 2019
@wenlingz wenlingz merged commit 33ecdd7 into projectacrn:master Feb 28, 2019
@ghost ghost deleted the fortify branch February 28, 2019 05:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Auto_Merge_Pass it is ready to merge Coding Guidelines: PASS Coding Guidelines Manual Check Tracked On Pass
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants