numam-dpdk/mk
Bruce Richardson 1745724770 mk: fix linking drivers in static apps
The variable CONFIG_RTE_BUILD_SHARED_LIB was in rte.app.mk as
"RTE_BUILD_SHARED_LIB", which meant that none of the example apps linked
in the PMDs and just didn't work with any eth ports in any static builds.

This bug has been introduced in commit 3660cdf990:
  pcap: convert to use of PMD_REGISTER_DRIVER and fix linking

Link for l2fwd before patch:
  "... -Wl,--whole-archive -Wl,-lrte_kni -Wl,-lrte_timer -Wl,-lrte_hash
-Wl,-lrte_lpm -Wl,-lrte_power -Wl,-lrte_meter -Wl,-lrte_sched -Wl,-lm
-Wl,-lrt -Wl,--start-group -Wl,-lrte_kvargs -Wl,-lrte_mbuf -Wl,-lethdev
-Wl,-lrte_malloc -Wl,-lrte_mempool -Wl,-lrte_ring -Wl,-lrte_eal
-Wl,-lrte_cmdline -Wl,-lrt -Wl,-lm -Wl,-ldl -Wl,--end-group
-Wl,--no-whole-archive"

Link for l2fwd after patch:
  "...  -Wl,--whole-archive -Wl,-lrte_kni -Wl,-lrte_timer -Wl,-lrte_hash
-Wl,-lrte_lpm -Wl,-lrte_power -Wl,-lrte_meter -Wl,-lrte_sched -Wl,-lm
-Wl,-lrt -Wl,--start-group -Wl,-lrte_kvargs -Wl,-lrte_mbuf -Wl,-lethdev
-Wl,-lrte_malloc -Wl,-lrte_mempool -Wl,-lrte_ring -Wl,-lrte_eal
-Wl,-lrte_cmdline -Wl,-lrte_pmd_vmxnet3_uio -Wl,-lrte_pmd_virtio_uio
-Wl,-lrte_pmd_ixgbe -Wl,-lrte_pmd_e1000 -Wl,-lrte_pmd_ring -Wl,-lrt
-Wl,-lm -Wl,-ldl -Wl,--end-group -Wl,--no-whole-archive"

Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
Acked-by: Thomas Monjalon <thomas.monjalon@6wind.com>
2014-05-23 18:01:53 +02:00
..
arch add FreeBSD support 2014-02-25 21:29:18 +01:00
exec-env eal: add support for shared object drivers 2014-02-26 11:01:13 +01:00
internal mk: fix build ignoring other installed versions 2014-05-01 22:57:47 +02:00
machine mk: add haswell target 2014-02-25 21:29:18 +01:00
target/generic pcap: revert build patches 2014-03-19 14:33:52 +01:00
toolchain mk: add haswell target 2014-02-25 21:29:18 +01:00
rte.app.mk mk: fix linking drivers in static apps 2014-05-23 18:01:53 +02:00
rte.bsdmodule.mk mk: use the Q variable instead of @ for bsd module 2014-04-30 01:28:18 +02:00
rte.cpuflags.mk mk: rework cpu flags detection 2014-02-25 21:29:18 +01:00
rte.extapp.mk update Intel copyright years to 2014 2014-02-25 21:29:14 +01:00
rte.extlib.mk update Intel copyright years to 2014 2014-02-25 21:29:14 +01:00
rte.extobj.mk update Intel copyright years to 2014 2014-02-25 21:29:14 +01:00
rte.extshared.mk mk: allow to build shared libraries 2014-02-26 11:01:13 +01:00
rte.extsubdir.mk mk: introduce rte.extsubdir.mk for projects with subdirectories 2014-05-16 13:28:21 +02:00
rte.extvars.mk update Intel copyright years to 2014 2014-02-25 21:29:14 +01:00
rte.gnuconfigure.mk update Intel copyright years to 2014 2014-02-25 21:29:14 +01:00
rte.hostapp.mk update Intel copyright years to 2014 2014-02-25 21:29:14 +01:00
rte.hostlib.mk update Intel copyright years to 2014 2014-02-25 21:29:14 +01:00
rte.install.mk update Intel copyright years to 2014 2014-02-25 21:29:14 +01:00
rte.lib.mk mk: fix -share option error 2014-04-30 01:28:18 +02:00
rte.module.mk mk: pass CROSS_COMPILE when compiling kernel modules 2014-04-17 14:00:21 +02:00
rte.obj.mk update Intel copyright years to 2014 2014-02-25 21:29:14 +01:00
rte.sdkbuild.mk mk: add missing scripts directory in install directory 2014-05-16 13:25:48 +02:00
rte.sdkconfig.mk version: 1.7.0-rc0 2014-05-13 10:11:17 +02:00
rte.sdkdepdirs.mk mk: fix dependencies when modifying config 2014-03-26 23:10:41 +01:00
rte.sdkdoc.mk mk: rule help 2014-02-26 11:01:13 +01:00
rte.sdkexamples.mk mk: add "make examples" target in root makefile 2014-05-16 16:02:55 +02:00
rte.sdkgcov.mk update Intel copyright years to 2014 2014-02-25 21:29:14 +01:00
rte.sdkinstall.mk config: rename "default" configurations as "native" 2014-05-21 16:25:06 +02:00
rte.sdkroot.mk config: rename "default" configurations as "native" 2014-05-21 16:25:06 +02:00
rte.sdktest.mk update Intel copyright years to 2014 2014-02-25 21:29:14 +01:00
rte.sdktestall.mk config: rename "default" configurations as "native" 2014-05-21 16:25:06 +02:00
rte.shared.mk mk: fix build ignoring other installed versions 2014-05-01 22:57:47 +02:00
rte.sharelib.mk mk: fix -share option error 2014-04-30 01:28:18 +02:00
rte.subdir.mk update Intel copyright years to 2014 2014-02-25 21:29:14 +01:00
rte.vars.mk config: fix combined/shared lib 2014-02-25 21:29:18 +01:00