diff options
author | Danny Rawlins <crux@romster.me> | 2016-02-29 11:44:00 +0100 |
---|---|---|
committer | Juergen Daubert <jue@jue.li> | 2016-02-29 11:44:00 +0100 |
commit | b0f2f44f2410c382856aa0022e6764c2647117de (patch) | |
tree | b5a7df9bdb690549dd1a5902212a3a1acb5b38e7 | |
parent | b2017a6b8e7e8a0d98bde5bf672242f230e7d750 (diff) | |
download | prt-utils-b0f2f44f2410c382856aa0022e6764c2647117de.tar.gz prt-utils-b0f2f44f2410c382856aa0022e6764c2647117de.tar.xz |
revdep: use pkg-config to find the libraries needed to link against libelf
-rw-r--r-- | revdep/Makefile | 4 |
1 files 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)) |