From b0f2f44f2410c382856aa0022e6764c2647117de Mon Sep 17 00:00:00 2001 From: Danny Rawlins Date: Mon, 29 Feb 2016 11:44:00 +0100 Subject: revdep: use pkg-config to find the libraries needed to link against libelf --- revdep/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/revdep/Makefile b/revdep/Makefile index ecae89f..edb29e4 100644 --- a/revdep/Makefile +++ b/revdep/Makefile @@ -1,10 +1,10 @@ VERSION := 2.0 BINDIR := /usr/bin -MANDIR := /usr/man/man1 +MANDIR := /usr/share/man/man1 ETCDIR := /etc/revdep.d CXXFLAGS ?= -O2 CXXFLAGS += -std=gnu++0x -Wall -Wextra -g -DVERSION='"$(VERSION)"' -LDFLAGS += -static -lelf +LDFLAGS += -static $(shell pkg-config --libs --static libelf) SOURCES := elf.cpp utility.cpp main.cpp pkg.cpp elf-cache.cpp OBJECTS := $(patsubst %.cpp,%.o,$(SOURCES)) -- cgit v1.2.3