We use _GNU_SOURCE all over the place, but often times we miss defining it, resulting in broken builds on musl. Rather than fixing every library's and driver's and application's makefile, fix it by simply defining _GNU_SOURCE by default for all builds. Remove all usages of _GNU_SOURCE in source files and makefiles, and also fixup a couple of instances of using __USE_GNU instead of _GNU_SOURCE. Signed-off-by: Anatoly Burakov <anatoly.burakov@intel.com>
43 lines
1.0 KiB
Makefile
43 lines
1.0 KiB
Makefile
# SPDX-License-Identifier: BSD-3-Clause
|
|
# Copyright (c) 2016 Freescale Semiconductor, Inc. All rights reserved.
|
|
# Copyright 2017 NXP
|
|
|
|
include $(RTE_SDK)/mk/rte.vars.mk
|
|
|
|
#
|
|
# library name
|
|
#
|
|
LIB = librte_pmd_dpaa_sec.a
|
|
|
|
# build flags
|
|
CFLAGS += -DALLOW_EXPERIMENTAL_API
|
|
CFLAGS += -O3
|
|
CFLAGS += $(WERROR_FLAGS)
|
|
|
|
CFLAGS += -I$(RTE_SDK)/drivers/bus/dpaa
|
|
CFLAGS += -I$(RTE_SDK)/drivers/bus/dpaa/include
|
|
CFLAGS += -I$(RTE_SDK)/drivers/crypto/dpaa_sec/
|
|
#sharing the hw flib headers from dpaa2_sec pmd
|
|
CFLAGS += -I$(RTE_SDK)/drivers/crypto/dpaa2_sec/
|
|
CFLAGS += -I$(RTE_SDK)/lib/librte_eal/common/include
|
|
CFLAGS += -I$(RTE_SDK)/lib/librte_eal/linuxapp/eal
|
|
LDLIBS += -lrte_eal -lrte_mbuf -lrte_mempool -lrte_ring
|
|
LDLIBS += -lrte_cryptodev
|
|
|
|
# versioning export map
|
|
EXPORT_MAP := rte_pmd_dpaa_sec_version.map
|
|
|
|
# library version
|
|
LIBABIVER := 1
|
|
|
|
# library source files
|
|
SRCS-$(CONFIG_RTE_LIBRTE_PMD_DPAA_SEC) += dpaa_sec.c
|
|
|
|
# library dependencies
|
|
|
|
LDLIBS += -lrte_bus_dpaa
|
|
LDLIBS += -lrte_mempool_dpaa
|
|
LDLIBS += -lrte_common_dpaax
|
|
|
|
include $(RTE_SDK)/mk/rte.lib.mk
|