diff options
author | Stephen Hemminger <stephen@networkplumber.org> | 2017-08-10 17:05:03 -0700 |
---|---|---|
committer | Stephen Hemminger <stephen@networkplumber.org> | 2017-08-23 10:03:09 -0700 |
commit | 5f1df307b47f7f0b28a29d85418a3934cc3a83b2 (patch) | |
tree | 77853c3de06be5f0eae9f15cb20736829262c4ae /rdma | |
parent | 51186362ba95d7fc4f97ef7763718e1b5d236056 (diff) | |
download | iproute2-5f1df307b47f7f0b28a29d85418a3934cc3a83b2.tar.gz |
config: put CFLAGS/LDLIBS in config.mk
This renames Config to config.mk and includes more Make input.
Now configure generates all the required CFLAGS and LDLIBS for
the optional libraries.
Also, use pkg-config to test for libelf, rather than using a test
program. This makes it consistent with other libraries.
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Diffstat (limited to 'rdma')
-rw-r--r-- | rdma/Makefile | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/rdma/Makefile b/rdma/Makefile index 1a9e4b1a9..1b5aa50b2 100644 --- a/rdma/Makefile +++ b/rdma/Makefile @@ -1,13 +1,10 @@ -include ../Config +include ../config.mk ifeq ($(HAVE_MNL),y) RDMA_OBJ = rdma.o utils.o dev.o link.o TARGETS=rdma -CFLAGS += $(shell $(PKG_CONFIG) libmnl --cflags) -LDLIBS += $(shell $(PKG_CONFIG) libmnl --libs) - endif all: $(TARGETS) $(LIBS) |