]> git.droids-corp.org - dpdk.git/commitdiff
build: remove special handling for node library
authorThomas Monjalon <thomas@monjalon.net>
Wed, 1 Jul 2020 07:31:34 +0000 (09:31 +0200)
committerThomas Monjalon <thomas@monjalon.net>
Sun, 5 Jul 2020 08:52:11 +0000 (10:52 +0200)
The node library had a need of being linked as a whole
to make some constructors effective.
Now that all libraries are linked with --whole-archive,
there is no need to have this library separate.

Fixes: e2db26f76673 ("build: always link whole DPDK static libraries")
Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
Tested-by: Jerin Jacob <jerinj@marvell.com>
app/test/meson.build
examples/meson.build
lib/meson.build
meson.build

index d8c5b52952942137ed15eb4bc88eae9efa778d93..56591db4e05321d895720fec419af42853ed2897 100644 (file)
@@ -416,15 +416,13 @@ endforeach
 test_dep_objs += cc.find_library('execinfo', required: false)
 
 link_libs = []
-link_nodes = []
 if get_option('default_library') == 'static'
        link_libs = dpdk_static_libraries + dpdk_drivers
-       link_nodes = dpdk_graph_nodes
 endif
 
 dpdk_test = executable('dpdk-test',
        test_sources,
-       link_whole: link_libs + link_nodes,
+       link_whole: link_libs,
        dependencies: test_dep_objs,
        c_args: cflags,
        install_rpath: driver_install_path,
index 120eebf7166c593eb5c241d079b473da79f1c5da..eb13e82101704a72dbaf30efefbfa3ee6d854ec4 100644 (file)
@@ -2,10 +2,8 @@
 # Copyright(c) 2017-2019 Intel Corporation
 
 link_whole_libs = []
-node_libs = []
 if get_option('default_library') == 'static'
        link_whole_libs = dpdk_static_libraries + dpdk_drivers
-       node_libs = dpdk_graph_nodes
 endif
 
 execinfo = cc.find_library('execinfo', required: false)
@@ -101,7 +99,7 @@ foreach example: examples
                endif
                executable('dpdk-' + name, sources,
                        include_directories: includes,
-                       link_whole: link_whole_libs + node_libs,
+                       link_whole: link_whole_libs,
                        link_args: dpdk_extra_ldflags,
                        c_args: cflags,
                        dependencies: dep_objs)
index c1b9e1633ff5d792614cdf08ad241a9e9acd3772..8ca25172c3439c00d9c391ff38586a80c3568a1a 100644 (file)
@@ -202,9 +202,6 @@ foreach l:libraries
 
                        dpdk_libraries = [shared_lib] + dpdk_libraries
                        dpdk_static_libraries = [static_lib] + dpdk_static_libraries
-                       if libname == 'rte_node'
-                               dpdk_graph_nodes = [static_lib]
-                       endif
                endif # sources.length() > 0
 
                set_variable('shared_rte_' + name, shared_dep)
index d21adfd30354ee8e759b803239e2355caf148637..e8bb9c4c1ec652a1e8b7bb050654ef51944373cb 100644 (file)
@@ -16,7 +16,6 @@ cc = meson.get_compiler('c')
 dpdk_conf = configuration_data()
 dpdk_libraries = []
 dpdk_static_libraries = []
-dpdk_graph_nodes = []
 dpdk_driver_classes = []
 dpdk_drivers = []
 dpdk_extra_ldflags = []