Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
xcap
xcap-capability-linux
Commits
0b94bf68
Commit
0b94bf68
authored
Nov 21, 2018
by
Vikram Narayanan
Browse files
Makefile: Stock compilers enable pie by default
Linux won't compile without this option on latest stock gcc's.
parent
0a8a2226
Changes
1
Hide whitespace changes
Inline
Side-by-side
Makefile
View file @
0b94bf68
...
...
@@ -621,6 +621,11 @@ include arch/$(SRCARCH)/Makefile
KBUILD_CFLAGS
+=
$(
call
cc-option,-fno-delete-null-pointer-checks,
)
KBUILD_CFLAGS
+=
$(
call
cc-disable-warning,maybe-uninitialized,
)
# force no-pie for distro compilers that enable pie by default
KBUILD_CFLAGS
+=
$(
call
cc-option,
-fno-pie
)
KBUILD_CFLAGS
+=
$(
call
cc-option,
-no-pie
)
KBUILD_AFLAGS
+=
$(
call
cc-option,
-fno-pie
)
KBUILD_CPPFLAGS
+=
$(
call
cc-option,
-fno-pie
)
ifdef
CONFIG_CC_OPTIMIZE_FOR_SIZE
KBUILD_CFLAGS
+=
-Os
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment