tree: OBJS+=... doesn't work on the make command line, use EXTRA_OBJS variable instead

svn path=/nixpkgs/trunk/; revision=27919
This commit is contained in:
Peter Simons 2011-07-24 19:36:03 +00:00
parent 3415f0f088
commit 31d1abd4a1

View File

@ -10,9 +10,9 @@ let
if stdenv.isDarwin then ''
CFLAGS="-O2 -Wall -fomit-frame-pointer -no-cpp-precomp"
LDFLAGS=
OBJS+=strverscmp.o
EXTRA_OBJS=strverscmp.o
'' else
"";
""; # use linux flags by default
in
stdenv.mkDerivation {
name = "tree-${version}";
@ -23,6 +23,7 @@ stdenv.mkDerivation {
};
configurePhase = ''
sed -i Makefile -e 's|^OBJS=|OBJS=$(EXTRA_OBJS) |'
makeFlagsArray=(
prefix=$out
MANDIR=$out/share/man/man1