File: dpdk_libtrace.mk

package info (click to toggle)
libtrace3 3.0.22-0.2
  • links: PTS
  • area: main
  • in suites: forky, sid, trixie
  • size: 4,452 kB
  • sloc: ansic: 24,574; sh: 11,372; cpp: 1,811; makefile: 460; yacc: 96; lex: 50
file content (17 lines) | stat: -rw-r--r-- 447 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# Handles a tiny bit of extra work so that we don't break when doing a
# DPDK make like what rte.app.mk would do

# Taken from Intel DPDK to put -Wl, before a -melf option otherwise this breaks
ifeq ($(LINK_USING_CC),1)
comma := ,
LDFLAGS := $(addprefix -Wl$(comma),$(LDFLAGS))
endif

# Ensure extra libraries are linked in
ifeq ($(CONFIG_RTE_LIBC),y)
DPDKLIBS += -lc
DPDKLIBS += -lm
endif

DPDKLIBS += $(EXECENV_LDLIBS)
DPDKLIBS += $(CPU_LDLIBS)