net/thunderx: fix build flags with clang
authorJerin Jacob <jerin.jacob@caviumnetworks.com>
Mon, 27 Jun 2016 16:16:05 +0000 (21:46 +0530)
committerBruce Richardson <bruce.richardson@intel.com>
Wed, 29 Jun 2016 10:33:32 +0000 (12:33 +0200)
commit6e1429737089f6eff2561ee3623f6a23ff67b7d1
treedc79261279301beda888498b391037f4b399170b
parentc431ec66c54c4684b430217f4cad0cce4403eb71
net/thunderx: fix build flags with clang

'fno-prefetch-loop-arrays' optimization flag is not supported with clang,
so use it only when compiling with gcc.

Fixes: 1c421f18e095 ("net/thunderx: add single and multi-segment Tx")

Signed-off-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>
Reported-by: Ferruh Yigit <ferruh.yigit@intel.com>
drivers/net/thunderx/Makefile