mk: fix combined lib build with ABI versioning
authorFerruh Yigit <ferruh.yigit@intel.com>
Thu, 3 Dec 2015 13:51:08 +0000 (13:51 +0000)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Sun, 6 Dec 2015 14:41:04 +0000 (15:41 +0100)
commit9f8eeb60efb8717d071a271577bb6f1f29bff41d
tree3717fdf550acb881c6673becd76dd18fd89b2ca1
parent8c91541188c911e690fb745e575763bd12faf4d2
mk: fix combined lib build with ABI versioning

Fixes following error (observed when versioning macros used):
  LD libdpdk.so
  /usr/bin/ld: /root/dpdk/build/lib/libdpdk.so: version node not found
  for symbol <function>@DPDK_x.y

Also resulting combined library contains symbol version information:
$ readelf -a build/lib/libdpdk.so | grep rte_eal_ | grep @ | head
   <...>    GLOBAL DEFAULT   12 rte_eal_alarm_set@@DPDK_2.0
   <...>    GLOBAL DEFAULT   12 rte_eal_pci_write_config@@DPDK_2.1
   <...>    GLOBAL DEFAULT   12 rte_eal_remote_launch@@DPDK_2.0
...

Versioning fixed by merging all version scripts into one automatically and
feeding it to final library.

Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com>
MAINTAINERS
mk/rte.sharelib.mk
scripts/merge-maps.sh [new file with mode: 0755]