openwrt-6.x/package/utils
Robert Marko 8c90527a80
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>
2023-09-04 14:39:17 +08:00
..
adb
bcm27xx-userland
bcm4908img
bsdiff
busybox
bzip2
checkpolicy
ct-bugcheck
dtc
e2fsprogs e2fsprogs: do not symlink tune2fs to findfs 2023-07-08 16:51:17 +02:00
f2fs-tools
fbtest
firmware-utils
fritz-tools
jboot-tools
jsonfilter
lua lua: fix integer overflow in LNUM patch 2023-07-08 16:56:12 +02:00
lua5.3
mdadm
mhz mhz: respect CC and CFLAGS passed by buildsystem 2023-09-04 14:39:17 +08:00
mtd-utils
nvram packages: nvram: add asus,rt-ac3100 to set_wireless_led_behaviour quirk 2023-08-19 11:03:11 +02:00
osafeloader
policycoreutils
px5g-mbedtls
px5g-wolfssl
ravpower-mcu
secilc
spidev_test
ucode
ucode-mod-bpf
uencrypt
ugps ugps: update to latest HEAD, introduce baudrate 2023-07-26 14:28:09 +02:00
usbmode
util-linux util-linux: enable colrm util as package 2023-07-11 21:08:16 +03:00
yafut
zyxel-bootconfig mediatek: add support for ZyXEL NWA50AX Pro 2023-07-21 20:28:13 +02:00