immortalwrt/package
Robert Marko 14a0ec41f8
mhz: respect CC and CFLAGS passed by buildsystem
It seems that the Makefile has both CC and CFLAGS hardcoded and does not
allow overriding them by ones being passed by the buildsystem.

This works fine until CONFIG_PKG_ASLR_PIE_ALL is selected, then building
will fail with:
arm-openwrt-linux-muslgnueabi/bin/ld.bfd: mhz.o: relocation R_ARM_MOVW_ABS_NC against `a local symbol' can not be used when making a shared object; recompile with -fPIC
arm-openwrt-linux-muslgnueabi/bin/ld.bfd: mhz.o(.text+0x75c): unresolvable R_ARM_CALL relocation against symbol `__aeabi_l2d@@GCC_3.5

So, lets add a patch pending upstream that allows both CC and CFLAGS to be
overriden so that ones passed by the buildsystem are actually respected.

Fixes: 89123b308f98 ("mhz: add new package")
Signed-off-by: Robert Marko <robimarko@gmail.com>
(cherry picked from commit 6c28f46f37d35dce06c320d9ac7f256c113aea22)
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
(cherry picked from commit 8c90527a80)
2023-09-04 14:39:58 +08:00
..
base-files OpenWrt v23.05.0-rc3: revert to branch defaults 2023-08-20 21:50:26 +02:00
boot mediatek: rename LC-HX3001 to ubootmod layout 2023-08-31 09:20:02 +08:00
devel perf: opt-out of lto usage 2023-08-11 12:53:34 +02:00
emortal default-settings: default: drop duplicate translations 2023-08-30 11:31:14 +08:00
firmware Merge Official Source 2023-08-30 11:52:20 +08:00
kernel Merge Official Source 2023-08-30 11:52:20 +08:00
libs Merge Official Source 2023-08-30 11:52:20 +08:00
network Merge Official Source 2023-08-20 21:43:32 +08:00
system urngd: fix busy loop in case of ioctl cause high cpu usage 2023-09-01 09:51:02 +08:00
utils mhz: respect CC and CFLAGS passed by buildsystem 2023-09-04 14:39:58 +08:00
Makefile build: generate index.json 2023-05-09 23:56:49 +02:00