X-Git-Url: http://gitweb/?a=blobdiff_plain;f=Makefile;h=bd733fb284c7a2fb47185449480ee5c23e510648;hb=refs%2Fheads%2F3.1;hp=33d2c8e7635eaf1a47d6ec470b45c5678d277028;hpb=1593a50c02e33c4bd966bedb1878971c13a938be;p=pkgutils-cross.git diff --git a/Makefile b/Makefile index 33d2c8e..bd733fb 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.1 +VERSION = 5.35.6 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