mirror of
https://github.com/LiBwrt-op/openwrt-6.x.git
synced 2026-01-09 20:53:43 +00:00
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>
|
||
|---|---|---|
| .. | ||
| adb | ||
| bcm27xx-userland | ||
| bcm4908img | ||
| bsdiff | ||
| busybox | ||
| bzip2 | ||
| checkpolicy | ||
| ct-bugcheck | ||
| dtc | ||
| e2fsprogs | ||
| f2fs-tools | ||
| fbtest | ||
| firmware-utils | ||
| fritz-tools | ||
| jboot-tools | ||
| jsonfilter | ||
| lua | ||
| lua5.3 | ||
| mdadm | ||
| mhz | ||
| mtd-utils | ||
| nvram | ||
| osafeloader | ||
| policycoreutils | ||
| px5g-mbedtls | ||
| px5g-wolfssl | ||
| ravpower-mcu | ||
| secilc | ||
| spidev_test | ||
| ucode | ||
| ucode-mod-bpf | ||
| uencrypt | ||
| ugps | ||
| usbmode | ||
| util-linux | ||
| yafut | ||
| zyxel-bootconfig | ||