mirror of
https://github.com/openwrt/packages.git
synced 2025-12-22 16:54:32 +04:00
Add patch to fix compilation error on mips targets. This was triggered
after enabling LTO. It was discovered that -fPIC is enabled on building
dynamic modules in CFLAGS but was missing on linking them. This patch
adds the missing -fPIC also on linking.
Fixes: 3b13b08ad9 ("nginx: Fix compilation with LTO")
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
12 lines
401 B
Diff
12 lines
401 B
Diff
--- a/auto/make
|
|
+++ b/auto/make
|
|
@@ -623,7 +623,7 @@ END
|
|
modules: $ngx_obj
|
|
|
|
$ngx_obj: $ngx_deps$ngx_spacer
|
|
- \$(LINK) $ngx_long_start$ngx_binout$ngx_obj$ngx_long_cont$ngx_objs$ngx_libs$ngx_link$ngx_module_link
|
|
+ \$(LINK) $ngx_pic_opt $ngx_long_start$ngx_binout$ngx_obj$ngx_long_cont$ngx_objs$ngx_libs$ngx_link$ngx_module_link
|
|
$ngx_long_end
|
|
|
|
$ngx_modules_obj: \$(CORE_DEPS)$ngx_cont$ngx_modules_c
|