Commit cd591a4
Do not build dpdk with fPIC options
- This option added before to resolve the issues from older version of
gcc (gcc-5, gcc-6), which defaultly enable pie mode. This bug had been
fixed on the newer version of gcc.
- If stack protector option enabled on kernel (CC_STACKPROTECTOR_STRONG,
or STACKPROTECTOR_STRONG), pie is not allowed. This is defaultly
enabled on many of recent Debian-family distros, so The option `-fPIC`
triggers an build error for some driver modules (e.g., kmoe, igb_uio)
- To support default kernel option for stack protector, and as a fact
that PIE is not default for recent version of gcc anymore, we can
remove fPIC from the option.
- Still build with old gcc versions on newer kernel have a chance to
failure, in that case, multiple options may available
(though, I didn't test those options by myself)
1) upgrade gcc to newer version
2) override DPDK_CFLAGS to set -fPIC
3) disable STACKPROTECTOR_STRONG from kernel config
4) disable PIE option on KBUILD_CFLAGS (--no-pie)1 parent ea848dd commit cd591a4
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
98 | | - | |
| 98 | + | |
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
| |||
0 commit comments