]> git.ipfire.org Git - thirdparty/xz.git/commitdiff
liblzma: Fix a portability problem in Makefile.am.
authorLasse Collin <lasse.collin@tukaani.org>
Sat, 20 Sep 2014 16:42:56 +0000 (19:42 +0300)
committerLasse Collin <lasse.collin@tukaani.org>
Sat, 20 Sep 2014 16:48:16 +0000 (19:48 +0300)
POSIX supports $< only in inference rules (suffix rules).
Using it elsewhere is a GNU make extension and doesn't
work e.g. with OpenBSD make.

Thanks to Christian Weisgerber for the patch.

src/liblzma/Makefile.am

index c653f8a530e183663e0571ea3308b6005425b23a..e9ab667c33b0437a88b0570382a8cdc669a7f02c 100644 (file)
@@ -104,7 +104,7 @@ liblzma.pc: $(srcdir)/liblzma.pc.in
                -e 's,@PACKAGE_VERSION[@],$(PACKAGE_VERSION),g' \
                -e 's,@PTHREAD_CFLAGS[@],$(PTHREAD_CFLAGS),g' \
                -e 's,@LIBS[@],$(LIBS),g' \
-               < $< > $@ || { rm -f $@; exit 1; }
+               < $(srcdir)/liblzma.pc.in > $@ || { rm -f $@; exit 1; }
 
 clean-local:
        rm -f liblzma.pc