]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
build: fix `make install` when --disable-shared is used
authorJan Engelhardt <jengelh@medozas.de>
Thu, 12 Jun 2008 10:10:47 +0000 (12:10 +0200)
committerPatrick McHardy <kaber@trash.net>
Thu, 12 Jun 2008 10:10:47 +0000 (12:10 +0200)
When --disable-shared is used, there are no .so files to install, and
the argument order for install would get messed up.

Reported-by: Michael Teicher <mteicher@gmail.com>
Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
Signed-off-by: Patrick McHardy <kaber@trash.net>
extensions/GNUmakefile.in

index 8d44e4e1d93ad7683037219eb4a002269fec4d58..4a3bf4e497666858bf35846c9c378b69aa12766b 100644 (file)
@@ -67,7 +67,7 @@ all: ${targets}
 
 install: ${targets_install}
        @mkdir -p "${DESTDIR}${xtlibdir}";
-       install -pm0755 $^ "${DESTDIR}${xtlibdir}/";
+       if test -n "${targets_install}"; then install -pm0755 $^ "${DESTDIR}${xtlibdir}/"; fi;
 
 clean:
        rm -f *.o *.oo *.so *.a {matches,targets}[46].man initext4.c initext6.c;