From 3624c9f26808881aa8c18b01ae26e49faaf8f685 Mon Sep 17 00:00:00 2001 From: Stefan Schwarz Date: Thu, 26 Apr 2018 09:33:58 +0200 Subject: [PATCH] fix install on ubuntu 18.04 --- src/Makefile.xtables | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Makefile.xtables b/src/Makefile.xtables index e8babb8..d83a1eb 100644 --- a/src/Makefile.xtables +++ b/src/Makefile.xtables @@ -6,7 +6,11 @@ clean: rm -f $(LIBS) install: - install -g root -o root -m 644 $(LIBS) /lib/xtables/ + if [ -d /usr/lib/x86_64-linux-gnu/xtables ]; then \ + install -g root -o root -m 644 $(LIBS) /usr/lib/x86_64-linux-gnu/xtables; \ + else \ + install -g root -o root -m 644 $(LIBS) /lib/xtables/ ; \ + fi lib%.so: lib%.o gcc -shared -fPIC -o $@ $^;