From: Tilman Sauerbeck Date: Wed, 5 May 2010 17:27:55 +0000 (+0200) Subject: Get libarchive LDFLAGS for static linking from pkg-config. X-Git-Url: http://gitweb/?a=commitdiff_plain;h=4b4ad16b7f79fcb59bdbd4afe1129e759c741bc2;p=pkgutils-cross.git Get libarchive LDFLAGS for static linking from pkg-config. --- diff --git a/Makefile b/Makefile index 36f11f4..6c68f2d 100644 --- a/Makefile +++ b/Makefile @@ -32,7 +32,9 @@ CXXFLAGS += -DNDEBUG CXXFLAGS += -O2 -Wall -pedantic -D_GNU_SOURCE -DVERSION=\"$(VERSION)\" \ -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -LDFLAGS += -static -larchive -lz +LIBARCHIVELIBS := $(shell pkg-config --libs --static libarchive) + +LDFLAGS += -static $(LIBARCHIVELIBS) OBJECTS = main.o pkgutil.o pkgadd.o pkgrm.o pkginfo.o