kamailio: prevent arm -march overrides 657/head
authorSebastian Kemper <sebastian_ml@gmx.net>
Thu, 15 Jul 2021 20:14:07 +0000 (22:14 +0200)
committerSebastian Kemper <sebastian_ml@gmx.net>
Thu, 15 Jul 2021 20:15:31 +0000 (22:15 +0200)
commitd6ddedbe5036c3eecdda789ff5dc5a80625a2b77
tree12509e32d142baa110c41858c5342d054032210f
parent9bcff2c04c827bfedbe368611624097349856ff4
kamailio: prevent arm -march overrides

src/Makefile.defs adds "-march=..." to target flags for ARM targets.
This can clash with the OpenWrt target flags in
CONFIG_TARGET_OPTIMIZATION. If for example the latter is set to
"-mcpu=cortex-a9" the following warning is issued:

cc1: warning: switch '-mcpu=cortex-a9' conflicts with '-march=armv5t' switch

This commit removes these flags. The addition is unwanted when
cross-compiling.

An issue was raised for this recently, see [1].

[1] https://github.com/openwrt/packages/issues/16135

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
net/kamailio/Makefile
net/kamailio/patches/070-dont-override-arm-march.patch [new file with mode: 0644]