diff options
author | Tilman Sauerbeck <tilman@crux.nu> | 2010-05-05 19:27:55 +0200 |
---|---|---|
committer | Tilman Sauerbeck <tilman@crux.nu> | 2010-05-05 19:27:55 +0200 |
commit | 4b4ad16b7f79fcb59bdbd4afe1129e759c741bc2 (patch) | |
tree | 6505ac1aab0faeefb1d8570b1bf10452425c56c8 /Makefile | |
parent | 5228efc2d634e5b75429b221ea4e09c20b5b4829 (diff) | |
download | pkgutils-4b4ad16b7f79fcb59bdbd4afe1129e759c741bc2.tar.gz pkgutils-4b4ad16b7f79fcb59bdbd4afe1129e759c741bc2.tar.xz |
Get libarchive LDFLAGS for static linking from pkg-config.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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 |