mk: fix 32-bit link with gcc
authorThomas Monjalon <thomas.monjalon@6wind.com>
Mon, 19 May 2014 21:45:03 +0000 (23:45 +0200)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Tue, 10 Jun 2014 11:27:15 +0000 (13:27 +0200)
commit21cdc2e77a4ca99941fac8b82281a6dc2c8cab87
tree001fbe8ac88c6a02503248ac852fd1fa6870abcc
parent88523f27e8448fc45c531e58a53af49cce39e891
mk: fix 32-bit link with gcc

Some linker options were not prefixed by -Wl, when using CC:
-z muldefs
-melf_i386 (CPU_LDFLAGS in 32-bit config)

I didn't see any error with -z muldefs but it isn't documented in gcc
manual. So it's safer to explicitly pass it to the linker.
Also building 32-bit shared library raises this error:
gcc: error: unrecognized command line option ‘-melf_i386’

Using macro linkerprefix fixes it.

Signed-off-by: Thomas Monjalon <thomas.monjalon@6wind.com>
Reviewed-by: Neil Horman <nhorman@tuxdriver.com>
Acked-by: Olivier Matz <olivier.matz@6wind.com>
mk/rte.lib.mk