get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/patches/72462/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 72462,
    "url": "http://patches.dpdk.org/api/patches/72462/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20200630141433.818517-7-bruce.richardson@intel.com/",
    "project": {
        "id": 1,
        "url": "http://patches.dpdk.org/api/projects/1/?format=api",
        "name": "DPDK",
        "link_name": "dpdk",
        "list_id": "dev.dpdk.org",
        "list_email": "dev@dpdk.org",
        "web_url": "http://core.dpdk.org",
        "scm_url": "git://dpdk.org/dpdk",
        "webscm_url": "http://git.dpdk.org/dpdk",
        "list_archive_url": "https://inbox.dpdk.org/dev",
        "list_archive_url_format": "https://inbox.dpdk.org/dev/{}",
        "commit_url_format": ""
    },
    "msgid": "<20200630141433.818517-7-bruce.richardson@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20200630141433.818517-7-bruce.richardson@intel.com",
    "date": "2020-06-30T14:14:32",
    "name": "[v3,6/7] build/pkg-config: improve static linking flags",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "1313deb3681639dc2310e4620dac170f388cf04d",
    "submitter": {
        "id": 20,
        "url": "http://patches.dpdk.org/api/people/20/?format=api",
        "name": "Bruce Richardson",
        "email": "bruce.richardson@intel.com"
    },
    "delegate": {
        "id": 1,
        "url": "http://patches.dpdk.org/api/users/1/?format=api",
        "username": "tmonjalo",
        "first_name": "Thomas",
        "last_name": "Monjalon",
        "email": "thomas@monjalon.net"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/20200630141433.818517-7-bruce.richardson@intel.com/mbox/",
    "series": [
        {
            "id": 10690,
            "url": "http://patches.dpdk.org/api/series/10690/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=10690",
            "date": "2020-06-30T14:14:26",
            "name": "improve DPDK static builds with meson",
            "version": 3,
            "mbox": "http://patches.dpdk.org/series/10690/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/72462/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/72462/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<dev-bounces@dpdk.org>",
        "X-Original-To": "patchwork@inbox.dpdk.org",
        "Delivered-To": "patchwork@inbox.dpdk.org",
        "Received": [
            "from dpdk.org (dpdk.org [92.243.14.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 59AEAA0350;\n\tTue, 30 Jun 2020 16:16:26 +0200 (CEST)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 9CCB91BFD1;\n\tTue, 30 Jun 2020 16:15:30 +0200 (CEST)",
            "from mga09.intel.com (mga09.intel.com [134.134.136.24])\n by dpdk.org (Postfix) with ESMTP id 02DDA1BFBC\n for <dev@dpdk.org>; Tue, 30 Jun 2020 16:15:27 +0200 (CEST)",
            "from fmsmga004.fm.intel.com ([10.253.24.48])\n by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 30 Jun 2020 07:15:27 -0700",
            "from silpixa00399126.ir.intel.com ([10.237.222.84])\n by fmsmga004.fm.intel.com with ESMTP; 30 Jun 2020 07:15:25 -0700"
        ],
        "IronPort-SDR": [
            "\n O4LdOpLamwxHiC2kV8EkHsXFfGkjzCEhxFis73cwuKJtQw3Ys+krSC2rCvvPHFyu+2ghA54jjS\n Xvu3Xre/n7Xg==",
            "\n OsjEUixEPlc7UBJUevuByfa1FE2ruAn0Y2q29LRM+w2kBAlkVDE3vSTjItYCHztrx17iSJN4yW\n 25M4/0VsHcvw=="
        ],
        "X-IronPort-AV": [
            "E=McAfee;i=\"6000,8403,9666\"; a=\"147784785\"",
            "E=Sophos;i=\"5.75,297,1589266800\"; d=\"scan'208\";a=\"147784785\"",
            "E=Sophos;i=\"5.75,297,1589266800\"; d=\"scan'208\";a=\"303471570\""
        ],
        "X-Amp-Result": "SKIPPED(no attachment in message)",
        "X-Amp-File-Uploaded": "False",
        "X-ExtLoop1": "1",
        "From": "Bruce Richardson <bruce.richardson@intel.com>",
        "To": "dev@dpdk.org",
        "Cc": "thomas@monjalon.net, david.marchand@redhat.com, ktraynor@redhat.com,\n bluca@debian.org, sunil.pai.g@intel.com,\n Bruce Richardson <bruce.richardson@intel.com>",
        "Date": "Tue, 30 Jun 2020 15:14:32 +0100",
        "Message-Id": "<20200630141433.818517-7-bruce.richardson@intel.com>",
        "X-Mailer": "git-send-email 2.25.1",
        "In-Reply-To": "<20200630141433.818517-1-bruce.richardson@intel.com>",
        "References": "<20200429100831.398-1-bruce.richardson@intel.com>\n <20200630141433.818517-1-bruce.richardson@intel.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Subject": "[dpdk-dev] [PATCH v3 6/7] build/pkg-config: improve static linking\n\tflags",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.15",
        "Precedence": "list",
        "List-Id": "DPDK patches and discussions <dev.dpdk.org>",
        "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n <mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "List-Archive": "<http://mails.dpdk.org/archives/dev/>",
        "List-Post": "<mailto:dev@dpdk.org>",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n <mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "Rather than setting -Bstatic in the linker flags when doing a static link,\nand then having to explicitly set -Bdynamic again afterwards, we can update\nthe pkg-config file to use -l:libfoo.a syntax to explicitly refer to the\nstatic library in question. Since this syntax is not supported by meson's\npkg-config module directly, we can post-process the .pc files instead to\nadjust them.\n\nOnce done, we can simplify the examples' makefiles and the docs by removing\nthe explicit static flag.\n\nSigned-off-by: Bruce Richardson <bruce.richardson@intel.com>\nAcked-by: Luca Boccassi <bluca@debian.org>\nAcked-by: Sunil Pai G <sunil.pai.g@intel.com>\n---\n buildtools/pkg-config/meson.build             | 13 ++++---\n .../pkg-config/set-static-linker-flags.py     | 38 +++++++++++++++++++\n doc/guides/prog_guide/build-sdk-meson.rst     |  2 +-\n examples/bbdev_app/Makefile                   |  2 +-\n examples/bond/Makefile                        |  2 +-\n examples/cmdline/Makefile                     |  2 +-\n examples/distributor/Makefile                 |  2 +-\n examples/eventdev_pipeline/Makefile           |  2 +-\n examples/fips_validation/Makefile             |  2 +-\n examples/flow_classify/Makefile               |  2 +-\n examples/flow_filtering/Makefile              |  2 +-\n examples/helloworld/Makefile                  |  2 +-\n examples/ioat/Makefile                        |  2 +-\n examples/ip_fragmentation/Makefile            |  2 +-\n examples/ip_pipeline/Makefile                 |  2 +-\n examples/ip_reassembly/Makefile               |  2 +-\n examples/ipsec-secgw/Makefile                 |  2 +-\n examples/ipv4_multicast/Makefile              |  2 +-\n examples/kni/Makefile                         |  2 +-\n examples/l2fwd-cat/Makefile                   |  2 +-\n examples/l2fwd-crypto/Makefile                |  2 +-\n examples/l2fwd-event/Makefile                 |  2 +-\n examples/l2fwd-jobstats/Makefile              |  2 +-\n examples/l2fwd-keepalive/Makefile             |  2 +-\n examples/l2fwd/Makefile                       |  2 +-\n examples/l3fwd-acl/Makefile                   |  2 +-\n examples/l3fwd-power/Makefile                 |  2 +-\n examples/l3fwd/Makefile                       |  2 +-\n examples/link_status_interrupt/Makefile       |  2 +-\n examples/ntb/Makefile                         |  2 +-\n examples/packet_ordering/Makefile             |  2 +-\n examples/ptpclient/Makefile                   |  2 +-\n examples/qos_meter/Makefile                   |  2 +-\n examples/qos_sched/Makefile                   |  2 +-\n examples/rxtx_callbacks/Makefile              |  2 +-\n examples/service_cores/Makefile               |  2 +-\n examples/skeleton/Makefile                    |  2 +-\n examples/tep_termination/Makefile             |  2 +-\n examples/timer/Makefile                       |  2 +-\n examples/vdpa/Makefile                        |  2 +-\n examples/vhost/Makefile                       |  2 +-\n examples/vhost_blk/Makefile                   |  2 +-\n examples/vhost_crypto/Makefile                |  2 +-\n examples/vmdq/Makefile                        |  2 +-\n examples/vmdq_dcb/Makefile                    |  2 +-\n 45 files changed, 88 insertions(+), 49 deletions(-)\n create mode 100644 buildtools/pkg-config/set-static-linker-flags.py",
    "diff": "diff --git a/buildtools/pkg-config/meson.build b/buildtools/pkg-config/meson.build\nindex aabd00eed..e043c5ee1 100644\n--- a/buildtools/pkg-config/meson.build\n+++ b/buildtools/pkg-config/meson.build\n@@ -1,10 +1,6 @@\n # SPDX-License-Identifier: BSD-3-Clause\n # Copyright(c) 2020 Intel Corporation\n \n-# for static builds, include the drivers as libs and we need to \"whole-archive\"\n-# them.\n-dpdk_drivers = ['-Wl,--whole-archive'] + dpdk_drivers + ['-Wl,--no-whole-archive']\n-\n pkg = import('pkgconfig')\n pkg_extra_cflags = ['-include', 'rte_config.h'] + machine_args\n if is_freebsd\n@@ -38,6 +34,11 @@ Note that CFLAGS might contain an -march flag higher than typical baseline.\n This is required for a number of static inline functions in the public headers.''',\n \trequires: ['libdpdk-libs', libbsd], # may need libbsd for string funcs\n \t                  # if libbsd is not enabled, then this is blank\n-\tlibraries_private: dpdk_drivers + dpdk_static_libraries +\n-\t\t\t['-Wl,-Bdynamic']\n+\tlibraries_private: ['-Wl,--whole-archive'] +\n+\t\t\tdpdk_drivers + dpdk_static_libraries +\n+\t\t\t['-Wl,--no-whole-archive']\n )\n+\n+# the pkg-config file generated is not best tuned for static linking so\n+# use a script to adjust the linker flags\n+run_command(py3, 'set-static-linker-flags.py', check: true)\ndiff --git a/buildtools/pkg-config/set-static-linker-flags.py b/buildtools/pkg-config/set-static-linker-flags.py\nnew file mode 100644\nindex 000000000..516c3678b\n--- /dev/null\n+++ b/buildtools/pkg-config/set-static-linker-flags.py\n@@ -0,0 +1,38 @@\n+#!/usr/bin/env python\n+# SPDX-License-Identifier: BSD-3-Clause\n+# Copyright(c) 2020 Intel Corporation\n+\n+# Script to fix flags for static linking in pkgconfig files from meson\n+# Should be called from meson build itself\n+import os\n+import sys\n+\n+\n+def fix_ldflag(f):\n+    if not f.startswith('-lrte_'):\n+        return f\n+    return '-l:lib' + f[2:] + '.a'\n+\n+\n+def fix_libs_private(line):\n+    if not line.startswith('Libs.private'):\n+        return line\n+    ldflags = [fix_ldflag(flag) for flag in line.split()]\n+    return ' '.join(ldflags) + '\\n'\n+\n+\n+def process_pc_file(filepath):\n+    print('Processing', filepath)\n+    with open(filepath) as src:\n+        lines = src.readlines()\n+    with open(filepath, 'w') as dst:\n+        dst.writelines([fix_libs_private(line) for line in lines])\n+\n+\n+if 'MESON_BUILD_ROOT' not in os.environ:\n+    print('This script must be called from a meson build environment')\n+    sys.exit(1)\n+for root, dirs, files in os.walk(os.environ['MESON_BUILD_ROOT']):\n+    pc_files = [f for f in files if f.endswith('.pc')]\n+    for f in pc_files:\n+        process_pc_file(os.path.join(root, f))\ndiff --git a/doc/guides/prog_guide/build-sdk-meson.rst b/doc/guides/prog_guide/build-sdk-meson.rst\nindex 7679c049a..44d1cafdf 100644\n--- a/doc/guides/prog_guide/build-sdk-meson.rst\n+++ b/doc/guides/prog_guide/build-sdk-meson.rst\n@@ -191,7 +191,7 @@ From examples/helloworld/Makefile::\n \tPC_FILE := $(shell pkg-config --path libdpdk)\n \tCFLAGS += -O3 $(shell pkg-config --cflags libdpdk)\n \tLDFLAGS_SHARED = $(shell pkg-config --libs libdpdk)\n-\tLDFLAGS_STATIC = -Wl,-Bstatic $(shell pkg-config --static --libs libdpdk)\n+\tLDFLAGS_STATIC = $(shell pkg-config --static --libs libdpdk)\n \n \tbuild/$(APP)-shared: $(SRCS-y) Makefile $(PC_FILE) | build\n \t\t$(CC) $(CFLAGS) $(SRCS-y) -o $@ $(LDFLAGS) $(LDFLAGS_SHARED)\ndiff --git a/examples/bbdev_app/Makefile b/examples/bbdev_app/Makefile\nindex ead3f016b..3c8eb75a4 100644\n--- a/examples/bbdev_app/Makefile\n+++ b/examples/bbdev_app/Makefile\n@@ -22,7 +22,7 @@ PKGCONF ?= pkg-config\n PC_FILE := $(shell $(PKGCONF) --path libdpdk 2>/dev/null)\n CFLAGS += -O3 $(shell $(PKGCONF) --cflags libdpdk)\n LDFLAGS_SHARED = $(shell $(PKGCONF) --libs libdpdk)\n-LDFLAGS_STATIC = -Wl,-Bstatic $(shell $(PKGCONF) --static --libs libdpdk)\n+LDFLAGS_STATIC = $(shell $(PKGCONF) --static --libs libdpdk)\n \n CFLAGS += -DALLOW_EXPERIMENTAL_API\n \ndiff --git a/examples/bond/Makefile b/examples/bond/Makefile\nindex 2030ca410..4e4289e15 100644\n--- a/examples/bond/Makefile\n+++ b/examples/bond/Makefile\n@@ -24,7 +24,7 @@ PKGCONF ?= pkg-config\n PC_FILE := $(shell $(PKGCONF) --path libdpdk 2>/dev/null)\n CFLAGS += -O3 $(shell $(PKGCONF) --cflags libdpdk)\n LDFLAGS_SHARED = $(shell $(PKGCONF) --libs libdpdk)\n-LDFLAGS_STATIC = -Wl,-Bstatic $(shell $(PKGCONF) --static --libs libdpdk)\n+LDFLAGS_STATIC = $(shell $(PKGCONF) --static --libs libdpdk)\n \n CFLAGS += -DALLOW_EXPERIMENTAL_API\n \ndiff --git a/examples/cmdline/Makefile b/examples/cmdline/Makefile\nindex 9a33355d0..732509772 100644\n--- a/examples/cmdline/Makefile\n+++ b/examples/cmdline/Makefile\n@@ -22,7 +22,7 @@ PKGCONF ?= pkg-config\n PC_FILE := $(shell $(PKGCONF) --path libdpdk 2>/dev/null)\n CFLAGS += -O3 $(shell $(PKGCONF) --cflags libdpdk)\n LDFLAGS_SHARED = $(shell $(PKGCONF) --libs libdpdk)\n-LDFLAGS_STATIC = -Wl,-Bstatic $(shell $(PKGCONF) --static --libs libdpdk)\n+LDFLAGS_STATIC = $(shell $(PKGCONF) --static --libs libdpdk)\n \n build/$(APP)-shared: $(SRCS-y) Makefile $(PC_FILE) | build\n \t$(CC) $(CFLAGS) $(SRCS-y) -o $@ $(LDFLAGS) $(LDFLAGS_SHARED)\ndiff --git a/examples/distributor/Makefile b/examples/distributor/Makefile\nindex 63c14dfca..6e3fef981 100644\n--- a/examples/distributor/Makefile\n+++ b/examples/distributor/Makefile\n@@ -22,7 +22,7 @@ PKGCONF ?= pkg-config\n PC_FILE := $(shell $(PKGCONF) --path libdpdk 2>/dev/null)\n CFLAGS += -O3 $(shell $(PKGCONF) --cflags libdpdk)\n LDFLAGS_SHARED = $(shell $(PKGCONF) --libs libdpdk)\n-LDFLAGS_STATIC = -Wl,-Bstatic $(shell $(PKGCONF) --static --libs libdpdk)\n+LDFLAGS_STATIC = $(shell $(PKGCONF) --static --libs libdpdk)\n \n build/$(APP)-shared: $(SRCS-y) Makefile $(PC_FILE) | build\n \t$(CC) $(CFLAGS) $(SRCS-y) -o $@ $(LDFLAGS) $(LDFLAGS_SHARED)\ndiff --git a/examples/eventdev_pipeline/Makefile b/examples/eventdev_pipeline/Makefile\nindex 96cd24437..95a8d0884 100644\n--- a/examples/eventdev_pipeline/Makefile\n+++ b/examples/eventdev_pipeline/Makefile\n@@ -24,7 +24,7 @@ PKGCONF ?= pkg-config\n PC_FILE := $(shell $(PKGCONF) --path libdpdk 2>/dev/null)\n CFLAGS += -O3 $(shell $(PKGCONF) --cflags libdpdk)\n LDFLAGS_SHARED = $(shell $(PKGCONF) --libs libdpdk)\n-LDFLAGS_STATIC = -Wl,-Bstatic $(shell $(PKGCONF) --static --libs libdpdk)\n+LDFLAGS_STATIC = $(shell $(PKGCONF) --static --libs libdpdk)\n \n build/$(APP)-shared: $(SRCS-y) Makefile $(PC_FILE) | build\n \t$(CC) $(CFLAGS) $(SRCS-y) -o $@ $(LDFLAGS) $(LDFLAGS_SHARED)\ndiff --git a/examples/fips_validation/Makefile b/examples/fips_validation/Makefile\nindex c207d11b9..b44ca2ee6 100644\n--- a/examples/fips_validation/Makefile\n+++ b/examples/fips_validation/Makefile\n@@ -32,7 +32,7 @@ PKGCONF ?= pkg-config\n PC_FILE := $(shell $(PKGCONF) --path libdpdk 2>/dev/null)\n CFLAGS += -O3 $(shell $(PKGCONF) --cflags libdpdk)\n LDFLAGS_SHARED = $(shell $(PKGCONF) --libs libdpdk)\n-LDFLAGS_STATIC = -Wl,-Bstatic $(shell $(PKGCONF) --static --libs libdpdk)\n+LDFLAGS_STATIC = $(shell $(PKGCONF) --static --libs libdpdk)\n \n build/$(APP)-shared: $(SRCS-y) Makefile $(PC_FILE) | build\n \t$(CC) $(CFLAGS) $(SRCS-y) -o $@ $(LDFLAGS) $(LDFLAGS_SHARED)\ndiff --git a/examples/flow_classify/Makefile b/examples/flow_classify/Makefile\nindex 6864941b3..161d576b6 100644\n--- a/examples/flow_classify/Makefile\n+++ b/examples/flow_classify/Makefile\n@@ -22,7 +22,7 @@ PKGCONF ?= pkg-config\n PC_FILE := $(shell $(PKGCONF) --path libdpdk 2>/dev/null)\n CFLAGS += -O3 $(shell $(PKGCONF) --cflags libdpdk)\n LDFLAGS_SHARED = $(shell $(PKGCONF) --libs libdpdk)\n-LDFLAGS_STATIC = -Wl,-Bstatic $(shell $(PKGCONF) --static --libs libdpdk)\n+LDFLAGS_STATIC = $(shell $(PKGCONF) --static --libs libdpdk)\n \n CFLAGS += -DALLOW_EXPERIMENTAL_API\n \ndiff --git a/examples/flow_filtering/Makefile b/examples/flow_filtering/Makefile\nindex e0d546de9..010a1383e 100644\n--- a/examples/flow_filtering/Makefile\n+++ b/examples/flow_filtering/Makefile\n@@ -20,7 +20,7 @@ PKGCONF ?= pkg-config\n PC_FILE := $(shell $(PKGCONF) --path libdpdk 2>/dev/null)\n CFLAGS += -O3 $(shell $(PKGCONF) --cflags libdpdk)\n LDFLAGS_SHARED = $(shell $(PKGCONF) --libs libdpdk)\n-LDFLAGS_STATIC = -Wl,-Bstatic $(shell $(PKGCONF) --static --libs libdpdk)\n+LDFLAGS_STATIC = $(shell $(PKGCONF) --static --libs libdpdk)\n \n build/$(APP)-shared: $(SRCS-y) Makefile $(PC_FILE) | build\n \t$(CC) $(CFLAGS) $(SRCS-y) -o $@ $(LDFLAGS) $(LDFLAGS_SHARED)\ndiff --git a/examples/helloworld/Makefile b/examples/helloworld/Makefile\nindex 0f5af0806..94a1074cf 100644\n--- a/examples/helloworld/Makefile\n+++ b/examples/helloworld/Makefile\n@@ -22,7 +22,7 @@ PKGCONF ?= pkg-config\n PC_FILE := $(shell $(PKGCONF) --path libdpdk 2>/dev/null)\n CFLAGS += -O3 $(shell $(PKGCONF) --cflags libdpdk)\n LDFLAGS_SHARED = $(shell $(PKGCONF) --libs libdpdk)\n-LDFLAGS_STATIC = -Wl,-Bstatic $(shell $(PKGCONF) --static --libs libdpdk)\n+LDFLAGS_STATIC = $(shell $(PKGCONF) --static --libs libdpdk)\n \n build/$(APP)-shared: $(SRCS-y) Makefile $(PC_FILE) | build\n \t$(CC) $(CFLAGS) $(SRCS-y) -o $@ $(LDFLAGS) $(LDFLAGS_SHARED)\ndiff --git a/examples/ioat/Makefile b/examples/ioat/Makefile\nindex 9b277eb7b..86308854e 100644\n--- a/examples/ioat/Makefile\n+++ b/examples/ioat/Makefile\n@@ -22,7 +22,7 @@ PKGCONF ?= pkg-config\n PC_FILE := $(shell $(PKGCONF) --path libdpdk 2>/dev/null)\n CFLAGS += -O3 $(shell $(PKGCONF) --cflags libdpdk)\n LDFLAGS_SHARED = $(shell $(PKGCONF) --libs libdpdk)\n-LDFLAGS_STATIC = -Wl,-Bstatic $(shell $(PKGCONF) --static --libs libdpdk)\n+LDFLAGS_STATIC = $(shell $(PKGCONF) --static --libs libdpdk)\n \n build/$(APP)-shared: $(SRCS-y) Makefile $(PC_FILE) | build\n \t$(CC) $(CFLAGS) $(SRCS-y) -o $@ $(LDFLAGS) $(LDFLAGS_SHARED)\ndiff --git a/examples/ip_fragmentation/Makefile b/examples/ip_fragmentation/Makefile\nindex 8babbbf82..3f4db3f59 100644\n--- a/examples/ip_fragmentation/Makefile\n+++ b/examples/ip_fragmentation/Makefile\n@@ -24,7 +24,7 @@ PC_FILE := $(shell $(PKGCONF) --path libdpdk 2>/dev/null)\n CFLAGS += -O3 $(shell $(PKGCONF) --cflags libdpdk)\n CFLAGS += -DALLOW_EXPERIMENTAL_API\n LDFLAGS_SHARED = $(shell $(PKGCONF) --libs libdpdk)\n-LDFLAGS_STATIC = -Wl,-Bstatic $(shell $(PKGCONF) --static --libs libdpdk)\n+LDFLAGS_STATIC = $(shell $(PKGCONF) --static --libs libdpdk)\n \n build/$(APP)-shared: $(SRCS-y) Makefile $(PC_FILE) | build\n \t$(CC) $(CFLAGS) $(SRCS-y) -o $@ $(LDFLAGS) $(LDFLAGS_SHARED)\ndiff --git a/examples/ip_pipeline/Makefile b/examples/ip_pipeline/Makefile\nindex 3a0193818..1116bb6c1 100644\n--- a/examples/ip_pipeline/Makefile\n+++ b/examples/ip_pipeline/Makefile\n@@ -35,7 +35,7 @@ PKGCONF ?= pkg-config\n PC_FILE := $(shell $(PKGCONF) --path libdpdk 2>/dev/null)\n CFLAGS += -O3 $(shell $(PKGCONF) --cflags libdpdk)\n LDFLAGS_SHARED = $(shell $(PKGCONF) --libs libdpdk)\n-LDFLAGS_STATIC = -Wl,-Bstatic $(shell $(PKGCONF) --static --libs libdpdk)\n+LDFLAGS_STATIC = $(shell $(PKGCONF) --static --libs libdpdk)\n \n CFLAGS += -I.\n \ndiff --git a/examples/ip_reassembly/Makefile b/examples/ip_reassembly/Makefile\nindex 11be2a74a..be9e541bd 100644\n--- a/examples/ip_reassembly/Makefile\n+++ b/examples/ip_reassembly/Makefile\n@@ -23,7 +23,7 @@ PKGCONF ?= pkg-config\n PC_FILE := $(shell $(PKGCONF) --path libdpdk 2>/dev/null)\n CFLAGS += -O3 $(shell $(PKGCONF) --cflags libdpdk)\n LDFLAGS_SHARED = $(shell $(PKGCONF) --libs libdpdk)\n-LDFLAGS_STATIC = -Wl,-Bstatic $(shell $(PKGCONF) --static --libs libdpdk)\n+LDFLAGS_STATIC = $(shell $(PKGCONF) --static --libs libdpdk)\n \n build/$(APP)-shared: $(SRCS-y) Makefile $(PC_FILE) | build\n \t$(CC) $(CFLAGS) $(SRCS-y) -o $@ $(LDFLAGS) $(LDFLAGS_SHARED)\ndiff --git a/examples/ipsec-secgw/Makefile b/examples/ipsec-secgw/Makefile\nindex c4a272a30..ab15fca9e 100644\n--- a/examples/ipsec-secgw/Makefile\n+++ b/examples/ipsec-secgw/Makefile\n@@ -36,7 +36,7 @@ PKGCONF ?= pkg-config\n PC_FILE := $(shell $(PKGCONF) --path libdpdk 2>/dev/null)\n CFLAGS += -O3 $(shell $(PKGCONF) --cflags libdpdk)\n LDFLAGS_SHARED = $(shell $(PKGCONF) --libs libdpdk)\n-LDFLAGS_STATIC = -Wl,-Bstatic $(shell $(PKGCONF) --static --libs libdpdk)\n+LDFLAGS_STATIC = $(shell $(PKGCONF) --static --libs libdpdk)\n \n CFLAGS += -DALLOW_EXPERIMENTAL_API\n \ndiff --git a/examples/ipv4_multicast/Makefile b/examples/ipv4_multicast/Makefile\nindex b9f0813ed..0ed78c1cc 100644\n--- a/examples/ipv4_multicast/Makefile\n+++ b/examples/ipv4_multicast/Makefile\n@@ -23,7 +23,7 @@ PKGCONF ?= pkg-config\n PC_FILE := $(shell $(PKGCONF) --path libdpdk 2>/dev/null)\n CFLAGS += -O3 $(shell $(PKGCONF) --cflags libdpdk)\n LDFLAGS_SHARED = $(shell $(PKGCONF) --libs libdpdk)\n-LDFLAGS_STATIC = -Wl,-Bstatic $(shell $(PKGCONF) --static --libs libdpdk)\n+LDFLAGS_STATIC = $(shell $(PKGCONF) --static --libs libdpdk)\n \n build/$(APP)-shared: $(SRCS-y) Makefile $(PC_FILE) | build\n \t$(CC) $(CFLAGS) $(SRCS-y) -o $@ $(LDFLAGS) $(LDFLAGS_SHARED)\ndiff --git a/examples/kni/Makefile b/examples/kni/Makefile\nindex c7ca96d8a..8fcb67c61 100644\n--- a/examples/kni/Makefile\n+++ b/examples/kni/Makefile\n@@ -23,7 +23,7 @@ PC_FILE := $(shell $(PKGCONF) --path libdpdk 2>/dev/null)\n CFLAGS += -O3 $(shell $(PKGCONF) --cflags libdpdk)\n CFLAGS += -DALLOW_EXPERIMENTAL_API\n LDFLAGS_SHARED = $(shell $(PKGCONF) --libs libdpdk)\n-LDFLAGS_STATIC = -Wl,-Bstatic $(shell $(PKGCONF) --static --libs libdpdk)\n+LDFLAGS_STATIC = $(shell $(PKGCONF) --static --libs libdpdk)\n \n build/$(APP)-shared: $(SRCS-y) Makefile $(PC_FILE) | build\n \t$(CC) $(CFLAGS) $(SRCS-y) -o $@ $(LDFLAGS) $(LDFLAGS_SHARED)\ndiff --git a/examples/l2fwd-cat/Makefile b/examples/l2fwd-cat/Makefile\nindex ca1202be1..d767a10d7 100644\n--- a/examples/l2fwd-cat/Makefile\n+++ b/examples/l2fwd-cat/Makefile\n@@ -22,7 +22,7 @@ PKGCONF ?= pkg-config\n PC_FILE := $(shell $(PKGCONF) --path libdpdk 2>/dev/null)\n CFLAGS += -O3 $(shell $(PKGCONF) --cflags libdpdk)\n LDFLAGS_SHARED = $(shell $(PKGCONF) --libs libdpdk)\n-LDFLAGS_STATIC = -Wl,-Bstatic $(shell $(PKGCONF) --static --libs libdpdk)\n+LDFLAGS_STATIC = $(shell $(PKGCONF) --static --libs libdpdk)\n \n LDFLAGS += -lpqos\n \ndiff --git a/examples/l2fwd-crypto/Makefile b/examples/l2fwd-crypto/Makefile\nindex 2f1405a72..cdbb91a1e 100644\n--- a/examples/l2fwd-crypto/Makefile\n+++ b/examples/l2fwd-crypto/Makefile\n@@ -22,7 +22,7 @@ PKGCONF ?= pkg-config\n PC_FILE := $(shell $(PKGCONF) --path libdpdk 2>/dev/null)\n CFLAGS += -O3 $(shell $(PKGCONF) --cflags libdpdk)\n LDFLAGS_SHARED = $(shell $(PKGCONF) --libs libdpdk)\n-LDFLAGS_STATIC = -Wl,-Bstatic $(shell $(PKGCONF) --static --libs libdpdk)\n+LDFLAGS_STATIC = $(shell $(PKGCONF) --static --libs libdpdk)\n \n build/$(APP)-shared: $(SRCS-y) Makefile $(PC_FILE) | build\n \t$(CC) $(CFLAGS) $(SRCS-y) -o $@ $(LDFLAGS) $(LDFLAGS_SHARED)\ndiff --git a/examples/l2fwd-event/Makefile b/examples/l2fwd-event/Makefile\nindex 807f7f1b8..ddee388ae 100644\n--- a/examples/l2fwd-event/Makefile\n+++ b/examples/l2fwd-event/Makefile\n@@ -28,7 +28,7 @@ PKGCONF ?= pkg-config\n PC_FILE := $(shell $(PKGCONF) --path libdpdk 2>/dev/null)\n CFLAGS += -O3 $(shell $(PKGCONF) --cflags libdpdk)\n LDFLAGS_SHARED = $(shell $(PKGCONF) --libs libdpdk)\n-LDFLAGS_STATIC = -Wl,-Bstatic $(shell $(PKGCONF) --static --libs libdpdk)\n+LDFLAGS_STATIC = $(shell $(PKGCONF) --static --libs libdpdk)\n \n build/$(APP)-shared: $(SRCS-y) Makefile $(PC_FILE) | build\n \t$(CC) $(CFLAGS) $(SRCS-y) -o $@ $(LDFLAGS) $(LDFLAGS_SHARED)\ndiff --git a/examples/l2fwd-jobstats/Makefile b/examples/l2fwd-jobstats/Makefile\nindex 6cd9dcd9c..bdb83c3e1 100644\n--- a/examples/l2fwd-jobstats/Makefile\n+++ b/examples/l2fwd-jobstats/Makefile\n@@ -22,7 +22,7 @@ PKGCONF ?= pkg-config\n PC_FILE := $(shell $(PKGCONF) --path libdpdk 2>/dev/null)\n CFLAGS += -O3 $(shell $(PKGCONF) --cflags libdpdk)\n LDFLAGS_SHARED = $(shell $(PKGCONF) --libs libdpdk)\n-LDFLAGS_STATIC = -Wl,-Bstatic $(shell $(PKGCONF) --static --libs libdpdk)\n+LDFLAGS_STATIC = $(shell $(PKGCONF) --static --libs libdpdk)\n \n build/$(APP)-shared: $(SRCS-y) Makefile $(PC_FILE) | build\n \t$(CC) $(CFLAGS) $(SRCS-y) -o $@ $(LDFLAGS) $(LDFLAGS_SHARED)\ndiff --git a/examples/l2fwd-keepalive/Makefile b/examples/l2fwd-keepalive/Makefile\nindex 0db5e6015..9fd9db497 100644\n--- a/examples/l2fwd-keepalive/Makefile\n+++ b/examples/l2fwd-keepalive/Makefile\n@@ -24,7 +24,7 @@ PKGCONF ?= pkg-config\n PC_FILE := $(shell $(PKGCONF) --path libdpdk 2>/dev/null)\n CFLAGS += -O3 $(shell $(PKGCONF) --cflags libdpdk)\n LDFLAGS_SHARED = $(shell $(PKGCONF) --libs libdpdk)\n-LDFLAGS_STATIC = -Wl,-Bstatic $(shell $(PKGCONF) --static --libs libdpdk)\n+LDFLAGS_STATIC = $(shell $(PKGCONF) --static --libs libdpdk)\n \n build/$(APP)-shared: $(SRCS-y) Makefile $(PC_FILE) | build\n \t$(CC) $(CFLAGS) $(SRCS-y) -o $@ $(LDFLAGS) $(LDFLAGS_SHARED)\ndiff --git a/examples/l2fwd/Makefile b/examples/l2fwd/Makefile\nindex 8b7b26cb9..15105ac57 100644\n--- a/examples/l2fwd/Makefile\n+++ b/examples/l2fwd/Makefile\n@@ -24,7 +24,7 @@ CFLAGS += -O3 $(shell $(PKGCONF) --cflags libdpdk)\n # Add flag to allow experimental API as l2fwd uses rte_ethdev_set_ptype API\n CFLAGS += -DALLOW_EXPERIMENTAL_API\n LDFLAGS_SHARED = $(shell $(PKGCONF) --libs libdpdk)\n-LDFLAGS_STATIC = -Wl,-Bstatic $(shell $(PKGCONF) --static --libs libdpdk)\n+LDFLAGS_STATIC = $(shell $(PKGCONF) --static --libs libdpdk)\n \n build/$(APP)-shared: $(SRCS-y) Makefile $(PC_FILE) | build\n \t$(CC) $(CFLAGS) $(SRCS-y) -o $@ $(LDFLAGS) $(LDFLAGS_SHARED)\ndiff --git a/examples/l3fwd-acl/Makefile b/examples/l3fwd-acl/Makefile\nindex 9f31abef8..6644a2cf1 100644\n--- a/examples/l3fwd-acl/Makefile\n+++ b/examples/l3fwd-acl/Makefile\n@@ -22,7 +22,7 @@ PKGCONF ?= pkg-config\n PC_FILE := $(shell $(PKGCONF) --path libdpdk 2>/dev/null)\n CFLAGS += -O3 $(shell $(PKGCONF) --cflags libdpdk)\n LDFLAGS_SHARED = $(shell $(PKGCONF) --libs libdpdk)\n-LDFLAGS_STATIC = -Wl,-Bstatic $(shell $(PKGCONF) --static --libs libdpdk)\n+LDFLAGS_STATIC = $(shell $(PKGCONF) --static --libs libdpdk)\n \n build/$(APP)-shared: $(SRCS-y) Makefile $(PC_FILE) | build\n \t$(CC) $(CFLAGS) $(SRCS-y) -o $@ $(LDFLAGS) $(LDFLAGS_SHARED)\ndiff --git a/examples/l3fwd-power/Makefile b/examples/l3fwd-power/Makefile\nindex 852877c1f..ac1ccdcf6 100644\n--- a/examples/l3fwd-power/Makefile\n+++ b/examples/l3fwd-power/Makefile\n@@ -22,7 +22,7 @@ PKGCONF ?= pkg-config\n PC_FILE := $(shell $(PKGCONF) --path libdpdk 2>/dev/null)\n CFLAGS += -O3 $(shell $(PKGCONF) --cflags libdpdk)\n LDFLAGS_SHARED = $(shell $(PKGCONF) --libs libdpdk)\n-LDFLAGS_STATIC = -Wl,-Bstatic $(shell $(PKGCONF) --static --libs libdpdk)\n+LDFLAGS_STATIC = $(shell $(PKGCONF) --static --libs libdpdk)\n \n CFLAGS += -DALLOW_EXPERIMENTAL_API\n \ndiff --git a/examples/l3fwd/Makefile b/examples/l3fwd/Makefile\nindex 839439f0f..b25a51581 100644\n--- a/examples/l3fwd/Makefile\n+++ b/examples/l3fwd/Makefile\n@@ -23,7 +23,7 @@ PKGCONF ?= pkg-config\n PC_FILE := $(shell $(PKGCONF) --path libdpdk 2>/dev/null)\n CFLAGS += -O3 $(shell $(PKGCONF) --cflags libdpdk)\n LDFLAGS_SHARED = $(shell $(PKGCONF) --libs libdpdk)\n-LDFLAGS_STATIC = -Wl,-Bstatic $(shell $(PKGCONF) --static --libs libdpdk)\n+LDFLAGS_STATIC = $(shell $(PKGCONF) --static --libs libdpdk)\n \n build/$(APP)-shared: $(SRCS-y) Makefile $(PC_FILE) | build\n \t$(CC) $(CFLAGS) $(SRCS-y) -o $@ $(LDFLAGS) $(LDFLAGS_SHARED)\ndiff --git a/examples/link_status_interrupt/Makefile b/examples/link_status_interrupt/Makefile\nindex 613bb1167..f16916faa 100644\n--- a/examples/link_status_interrupt/Makefile\n+++ b/examples/link_status_interrupt/Makefile\n@@ -22,7 +22,7 @@ PKGCONF ?= pkg-config\n PC_FILE := $(shell $(PKGCONF) --path libdpdk 2>/dev/null)\n CFLAGS += -O3 $(shell $(PKGCONF) --cflags libdpdk)\n LDFLAGS_SHARED = $(shell $(PKGCONF) --libs libdpdk)\n-LDFLAGS_STATIC = -Wl,-Bstatic $(shell $(PKGCONF) --static --libs libdpdk)\n+LDFLAGS_STATIC = $(shell $(PKGCONF) --static --libs libdpdk)\n \n build/$(APP)-shared: $(SRCS-y) Makefile $(PC_FILE) | build\n \t$(CC) $(CFLAGS) $(SRCS-y) -o $@ $(LDFLAGS) $(LDFLAGS_SHARED)\ndiff --git a/examples/ntb/Makefile b/examples/ntb/Makefile\nindex f2920ed54..81ec6017f 100644\n--- a/examples/ntb/Makefile\n+++ b/examples/ntb/Makefile\n@@ -27,7 +27,7 @@ PC_FILE := $(shell $(PKGCONF) --path libdpdk 2>/dev/null)\n CFLAGS += -O3 $(shell $(PKGCONF) --cflags libdpdk)\n CFLAGS += -DALLOW_EXPERIMENTAL_API\n LDFLAGS_SHARED = $(shell $(PKGCONF) --libs libdpdk)\n-LDFLAGS_STATIC = -Wl,-Bstatic $(shell $(PKGCONF) --static --libs libdpdk)\n+LDFLAGS_STATIC = $(shell $(PKGCONF) --static --libs libdpdk)\n \n build/$(APP)-shared: $(SRCS-y) Makefile $(PC_FILE) | build\n \t$(CC) $(CFLAGS) $(SRCS-y) -o $@ $(LDFLAGS) $(LDFLAGS_SHARED)\ndiff --git a/examples/packet_ordering/Makefile b/examples/packet_ordering/Makefile\nindex f5b68c97e..f99b69dc2 100644\n--- a/examples/packet_ordering/Makefile\n+++ b/examples/packet_ordering/Makefile\n@@ -22,7 +22,7 @@ PKGCONF ?= pkg-config\n PC_FILE := $(shell $(PKGCONF) --path libdpdk 2>/dev/null)\n CFLAGS += -O3 $(shell $(PKGCONF) --cflags libdpdk)\n LDFLAGS_SHARED = $(shell $(PKGCONF) --libs libdpdk)\n-LDFLAGS_STATIC = -Wl,-Bstatic $(shell $(PKGCONF) --static --libs libdpdk)\n+LDFLAGS_STATIC = $(shell $(PKGCONF) --static --libs libdpdk)\n \n build/$(APP)-shared: $(SRCS-y) Makefile $(PC_FILE) | build\n \t$(CC) $(CFLAGS) $(SRCS-y) -o $@ $(LDFLAGS) $(LDFLAGS_SHARED)\ndiff --git a/examples/ptpclient/Makefile b/examples/ptpclient/Makefile\nindex 7cd36632a..a9555fc66 100644\n--- a/examples/ptpclient/Makefile\n+++ b/examples/ptpclient/Makefile\n@@ -22,7 +22,7 @@ PKGCONF ?= pkg-config\n PC_FILE := $(shell $(PKGCONF) --path libdpdk 2>/dev/null)\n CFLAGS += -O3 $(shell $(PKGCONF) --cflags libdpdk)\n LDFLAGS_SHARED = $(shell $(PKGCONF) --libs libdpdk)\n-LDFLAGS_STATIC = -Wl,-Bstatic $(shell $(PKGCONF) --static --libs libdpdk)\n+LDFLAGS_STATIC = $(shell $(PKGCONF) --static --libs libdpdk)\n \n build/$(APP)-shared: $(SRCS-y) Makefile $(PC_FILE) | build\n \t$(CC) $(CFLAGS) $(SRCS-y) -o $@ $(LDFLAGS) $(LDFLAGS_SHARED)\ndiff --git a/examples/qos_meter/Makefile b/examples/qos_meter/Makefile\nindex 90e3533d1..165e07ee2 100644\n--- a/examples/qos_meter/Makefile\n+++ b/examples/qos_meter/Makefile\n@@ -22,7 +22,7 @@ PKGCONF ?= pkg-config\n PC_FILE := $(shell $(PKGCONF) --path libdpdk 2>/dev/null)\n CFLAGS += -O3 $(shell $(PKGCONF) --cflags libdpdk)\n LDFLAGS_SHARED = $(shell $(PKGCONF) --libs libdpdk)\n-LDFLAGS_STATIC = -Wl,-Bstatic $(shell $(PKGCONF) --static --libs libdpdk)\n+LDFLAGS_STATIC = $(shell $(PKGCONF) --static --libs libdpdk)\n \n CFLAGS += -DALLOW_EXPERIMENTAL_API\n \ndiff --git a/examples/qos_sched/Makefile b/examples/qos_sched/Makefile\nindex 92e3de79b..0dd7d9105 100644\n--- a/examples/qos_sched/Makefile\n+++ b/examples/qos_sched/Makefile\n@@ -22,7 +22,7 @@ PKGCONF ?= pkg-config\n PC_FILE := $(shell $(PKGCONF) --path libdpdk 2>/dev/null)\n CFLAGS += -O3 $(shell $(PKGCONF) --cflags libdpdk)\n LDFLAGS_SHARED = $(shell $(PKGCONF) --libs libdpdk)\n-LDFLAGS_STATIC = -Wl,-Bstatic $(shell $(PKGCONF) --static --libs libdpdk)\n+LDFLAGS_STATIC = $(shell $(PKGCONF) --static --libs libdpdk)\n \n build/$(APP)-shared: $(SRCS-y) Makefile $(PC_FILE) | build\n \t$(CC) $(CFLAGS) $(SRCS-y) -o $@ $(LDFLAGS) $(LDFLAGS_SHARED)\ndiff --git a/examples/rxtx_callbacks/Makefile b/examples/rxtx_callbacks/Makefile\nindex 584b9fafb..10e5f14d5 100644\n--- a/examples/rxtx_callbacks/Makefile\n+++ b/examples/rxtx_callbacks/Makefile\n@@ -22,7 +22,7 @@ PKGCONF ?= pkg-config\n PC_FILE := $(shell $(PKGCONF) --path libdpdk 2>/dev/null)\n CFLAGS += -O3 $(shell $(PKGCONF) --cflags libdpdk)\n LDFLAGS_SHARED = $(shell $(PKGCONF) --libs libdpdk)\n-LDFLAGS_STATIC = -Wl,-Bstatic $(shell $(PKGCONF) --static --libs libdpdk)\n+LDFLAGS_STATIC = $(shell $(PKGCONF) --static --libs libdpdk)\n \n build/$(APP)-shared: $(SRCS-y) Makefile $(PC_FILE) | build\n \t$(CC) $(CFLAGS) $(SRCS-y) -o $@ $(LDFLAGS) $(LDFLAGS_SHARED)\ndiff --git a/examples/service_cores/Makefile b/examples/service_cores/Makefile\nindex aac207bd9..e742d88f6 100644\n--- a/examples/service_cores/Makefile\n+++ b/examples/service_cores/Makefile\n@@ -22,7 +22,7 @@ PKGCONF ?= pkg-config\n PC_FILE := $(shell $(PKGCONF) --path libdpdk 2>/dev/null)\n CFLAGS += -O3 $(shell $(PKGCONF) --cflags libdpdk)\n LDFLAGS_SHARED = $(shell $(PKGCONF) --libs libdpdk)\n-LDFLAGS_STATIC = -Wl,-Bstatic $(shell $(PKGCONF) --static --libs libdpdk)\n+LDFLAGS_STATIC = $(shell $(PKGCONF) --static --libs libdpdk)\n \n build/$(APP)-shared: $(SRCS-y) Makefile $(PC_FILE) | build\n \t$(CC) $(CFLAGS) $(SRCS-y) -o $@ $(LDFLAGS) $(LDFLAGS_SHARED)\ndiff --git a/examples/skeleton/Makefile b/examples/skeleton/Makefile\nindex 2612688c0..5f5acf715 100644\n--- a/examples/skeleton/Makefile\n+++ b/examples/skeleton/Makefile\n@@ -22,7 +22,7 @@ PKGCONF ?= pkg-config\n PC_FILE := $(shell $(PKGCONF) --path libdpdk 2>/dev/null)\n CFLAGS += -O3 $(shell $(PKGCONF) --cflags libdpdk)\n LDFLAGS_SHARED = $(shell $(PKGCONF) --libs libdpdk)\n-LDFLAGS_STATIC = -Wl,-Bstatic $(shell $(PKGCONF) --static --libs libdpdk)\n+LDFLAGS_STATIC = $(shell $(PKGCONF) --static --libs libdpdk)\n \n build/$(APP)-shared: $(SRCS-y) Makefile $(PC_FILE) | build\n \t$(CC) $(CFLAGS) $(SRCS-y) -o $@ $(LDFLAGS) $(LDFLAGS_SHARED)\ndiff --git a/examples/tep_termination/Makefile b/examples/tep_termination/Makefile\nindex 645112498..548ca3cee 100644\n--- a/examples/tep_termination/Makefile\n+++ b/examples/tep_termination/Makefile\n@@ -24,7 +24,7 @@ PKGCONF ?= pkg-config\n PC_FILE := $(shell $(PKGCONF) --path libdpdk 2>/dev/null)\n CFLAGS += -O3 $(shell $(PKGCONF) --cflags libdpdk)\n LDFLAGS_SHARED = $(shell $(PKGCONF) --libs libdpdk)\n-LDFLAGS_STATIC = -Wl,-Bstatic $(shell $(PKGCONF) --static --libs libdpdk)\n+LDFLAGS_STATIC = $(shell $(PKGCONF) --static --libs libdpdk)\n \n CFLAGS += -Wno-deprecated-declarations\n \ndiff --git a/examples/timer/Makefile b/examples/timer/Makefile\nindex e58e90a28..b40b65995 100644\n--- a/examples/timer/Makefile\n+++ b/examples/timer/Makefile\n@@ -22,7 +22,7 @@ PKGCONF ?= pkg-config\n PC_FILE := $(shell $(PKGCONF) --path libdpdk 2>/dev/null)\n CFLAGS += -O3 $(shell $(PKGCONF) --cflags libdpdk)\n LDFLAGS_SHARED = $(shell $(PKGCONF) --libs libdpdk)\n-LDFLAGS_STATIC = -Wl,-Bstatic $(shell $(PKGCONF) --static --libs libdpdk)\n+LDFLAGS_STATIC = $(shell $(PKGCONF) --static --libs libdpdk)\n \n build/$(APP)-shared: $(SRCS-y) Makefile $(PC_FILE) | build\n \t$(CC) $(CFLAGS) $(SRCS-y) -o $@ $(LDFLAGS) $(LDFLAGS_SHARED)\ndiff --git a/examples/vdpa/Makefile b/examples/vdpa/Makefile\nindex 6a25497cd..bc0b6793e 100644\n--- a/examples/vdpa/Makefile\n+++ b/examples/vdpa/Makefile\n@@ -23,7 +23,7 @@ PKGCONF ?= pkg-config\n PC_FILE := $(shell $(PKGCONF) --path libdpdk 2>/dev/null)\n CFLAGS += -O3 $(shell $(PKGCONF) --cflags libdpdk)\n LDFLAGS_SHARED = $(shell $(PKGCONF) --libs libdpdk)\n-LDFLAGS_STATIC = -Wl,-Bstatic $(shell $(PKGCONF) --static --libs libdpdk)\n+LDFLAGS_STATIC = $(shell $(PKGCONF) --static --libs libdpdk)\n \n build/$(APP)-shared: $(SRCS-y) Makefile $(PC_FILE) | build\n \t$(CC) $(CFLAGS) $(SRCS-y) -o $@ $(LDFLAGS) $(LDFLAGS_SHARED)\ndiff --git a/examples/vhost/Makefile b/examples/vhost/Makefile\nindex f2b161541..ef6f3550f 100644\n--- a/examples/vhost/Makefile\n+++ b/examples/vhost/Makefile\n@@ -24,7 +24,7 @@ PKGCONF ?= pkg-config\n PC_FILE := $(shell $(PKGCONF) --path libdpdk 2>/dev/null)\n CFLAGS += -O3 $(shell $(PKGCONF) --cflags libdpdk)\n LDFLAGS_SHARED = $(shell $(PKGCONF) --libs libdpdk)\n-LDFLAGS_STATIC = -Wl,-Bstatic $(shell $(PKGCONF) --static --libs libdpdk)\n+LDFLAGS_STATIC = $(shell $(PKGCONF) --static --libs libdpdk)\n \n CFLAGS += -DALLOW_EXPERIMENTAL_API\n \ndiff --git a/examples/vhost_blk/Makefile b/examples/vhost_blk/Makefile\nindex 39244320d..395279178 100644\n--- a/examples/vhost_blk/Makefile\n+++ b/examples/vhost_blk/Makefile\n@@ -25,7 +25,7 @@ LDFLAGS += -pthread\n PC_FILE := $(shell $(PKGCONF) --path libdpdk 2>/dev/null)\n CFLAGS += -O3 $(shell $(PKGCONF) --cflags libdpdk)\n LDFLAGS_SHARED = $(shell $(PKGCONF) --libs libdpdk)\n-LDFLAGS_STATIC = -Wl,-Bstatic $(shell $(PKGCONF) --static --libs libdpdk)\n+LDFLAGS_STATIC = $(shell $(PKGCONF) --static --libs libdpdk)\n \n CFLAGS += -DALLOW_EXPERIMENTAL_API\n \ndiff --git a/examples/vhost_crypto/Makefile b/examples/vhost_crypto/Makefile\nindex ae8cb81f8..28e3e4de7 100644\n--- a/examples/vhost_crypto/Makefile\n+++ b/examples/vhost_crypto/Makefile\n@@ -23,7 +23,7 @@ PKGCONF ?= pkg-config\n PC_FILE := $(shell $(PKGCONF) --path libdpdk 2>/dev/null)\n CFLAGS += -O3 $(shell $(PKGCONF) --cflags libdpdk)\n LDFLAGS_SHARED = $(shell $(PKGCONF) --libs libdpdk)\n-LDFLAGS_STATIC = -Wl,-Bstatic $(shell $(PKGCONF) --static --libs libdpdk)\n+LDFLAGS_STATIC = $(shell $(PKGCONF) --static --libs libdpdk)\n \n build/$(APP)-shared: $(SRCS-y) Makefile $(PC_FILE) | build\n \t$(CC) $(CFLAGS) $(SRCS-y) -o $@ $(LDFLAGS) $(LDFLAGS_SHARED)\ndiff --git a/examples/vmdq/Makefile b/examples/vmdq/Makefile\nindex 98e644fa7..b73373d3f 100644\n--- a/examples/vmdq/Makefile\n+++ b/examples/vmdq/Makefile\n@@ -22,7 +22,7 @@ PKGCONF ?= pkg-config\n PC_FILE := $(shell $(PKGCONF) --path libdpdk 2>/dev/null)\n CFLAGS += -O3 $(shell $(PKGCONF) --cflags libdpdk)\n LDFLAGS_SHARED = $(shell $(PKGCONF) --libs libdpdk)\n-LDFLAGS_STATIC = -Wl,-Bstatic $(shell $(PKGCONF) --static --libs libdpdk)\n+LDFLAGS_STATIC = $(shell $(PKGCONF) --static --libs libdpdk)\n \n build/$(APP)-shared: $(SRCS-y) Makefile $(PC_FILE) | build\n \t$(CC) $(CFLAGS) $(SRCS-y) -o $@ $(LDFLAGS) $(LDFLAGS_SHARED)\ndiff --git a/examples/vmdq_dcb/Makefile b/examples/vmdq_dcb/Makefile\nindex 3eb7c9f43..8d8baf729 100644\n--- a/examples/vmdq_dcb/Makefile\n+++ b/examples/vmdq_dcb/Makefile\n@@ -22,7 +22,7 @@ PKGCONF ?= pkg-config\n PC_FILE := $(shell $(PKGCONF) --path libdpdk 2>/dev/null)\n CFLAGS += -O3 $(shell $(PKGCONF) --cflags libdpdk)\n LDFLAGS_SHARED = $(shell $(PKGCONF) --libs libdpdk)\n-LDFLAGS_STATIC = -Wl,-Bstatic $(shell $(PKGCONF) --static --libs libdpdk)\n+LDFLAGS_STATIC = $(shell $(PKGCONF) --static --libs libdpdk)\n \n build/$(APP)-shared: $(SRCS-y) Makefile $(PC_FILE) | build\n \t$(CC) $(CFLAGS) $(SRCS-y) -o $@ $(LDFLAGS) $(LDFLAGS_SHARED)\n",
    "prefixes": [
        "v3",
        "6/7"
    ]
}