mk: fix bsd module build
authorSergio Gonzalez Monroy <sergio.gonzalez.monroy@intel.com>
Thu, 30 Oct 2014 16:58:54 +0000 (16:58 +0000)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Wed, 5 Nov 2014 21:18:31 +0000 (22:18 +0100)
commit9867fd32616d7da62ea2f1a75a5e0f7462bf2e93
treeb70caa356e1a15791217b29f7e98b5c3615b1663
parent0a88485379fa9b927d8a3383d422e88998d34118
mk: fix bsd module build

When building shared libs (for both GCC and CLANG targets), -fPIC flag
has been added to CFLAGS and leaks to BSD module build system causing
the following error:

fatal error: error in backend: Cannot select: 0x802ad8010: i64 = X86ISD::WrapperRIP 0x802ade110
      [ID=13]
  0x802ade110: i64 = TargetGlobalAddress<i8** @__stack_chk_guard> 0 [TF=5] [ID=10]

Reset CFLAGS to MODULE_CFLAGS before building BSD module.

Signed-off-by: Sergio Gonzalez Monroy <sergio.gonzalez.monroy@intel.com>
Acked-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
mk/rte.bsdmodule.mk