mk: fix linker script when re-building
authorSergio Gonzalez Monroy <sergio.gonzalez.monroy@intel.com>
Wed, 16 Mar 2016 23:22:23 +0000 (23:22 +0000)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Thu, 17 Mar 2016 20:53:06 +0000 (21:53 +0100)
commit9f8d48e56931b0bd145534f5e145fff7e8ef598d
tree86e85d18a4c373d758a85d1bda007379ee206916
parent0549dd5cf9562cf399a59e369108fb8e20c93fac
mk: fix linker script when re-building

The linker script is generated by simply finding all libraries in
RTE_OUTPUT/lib.

The issue shows up when re-building the DPDK, hence already having a
linker script in that directory, resulting in the linker script
including itself.

That does not play well with the linker.

Simply filtering the linker script from all the found libraries solves
the problem.

Fixes: 948fd64befc3 ("mk: replace the combined library with a linker script")

Signed-off-by: Sergio Gonzalez Monroy <sergio.gonzalez.monroy@intel.com>
Acked-by: Panu Matilainen <pmatilai@redhat.com>
mk/rte.combinedlib.mk