X-Git-Url: http://gitweb/?a=blobdiff_plain;f=Makefile;h=926807c6c5df383f83a687ce8702dd767083034c;hb=959f70f78d0797b2b0d87403f4a9d153bc521dfd;hp=05fa77abb785095f917663ef9570550d8e3fde56;hpb=3a97f4e76fbc247c91187296c612ce95ae08b678;p=pkgutils-cross.git diff --git a/Makefile b/Makefile index 05fa77a..926807c 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,7 @@ # pkgutils # # Copyright (c) 2000-2005 by Per Liden -# Copyright (c) 2006-2007 by CRUX team (http://crux.nu) +# Copyright (c) 2006-2013 by CRUX team (http://crux.nu) # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -25,14 +25,16 @@ BINDIR = /usr/bin MANDIR = /usr/man ETCDIR = /etc -VERSION = 5.34.0 +VERSION = 5.35.5 NAME = pkgutils-$(VERSION) 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