fix xtables-addons compile on non-linux systems
[openwrt/svn-archive/archive.git] / net / xtables-addons / patches / 002-portability.patch
1 --- a/extensions/GNUmakefile.in
2 +++ b/extensions/GNUmakefile.in
3 @@ -2,8 +2,8 @@
4
5 top_srcdir := @top_srcdir@
6 srcdir := @srcdir@
7 -abstop_srcdir := $(shell readlink -f ${top_srcdir})
8 -abssrcdir := $(shell readlink -f ${srcdir})
9 +abstop_srcdir := $(shell cd ${top_srcdir} && pwd)
10 +abssrcdir := $(shell cd ${srcdir} && pwd)
11
12 ifeq (${abstop_srcdir},)
13 $(error Path resolution of ${top_srcdir} failed)
14 --- a/extensions/ipset/GNUmakefile.in
15 +++ b/extensions/ipset/GNUmakefile.in
16 @@ -3,8 +3,8 @@
17 top_srcdir := @top_srcdir@
18 srcdir := @srcdir@
19 datarootdir := @datarootdir@
20 -abstop_srcdir := $(shell readlink -f ${top_srcdir})
21 -abssrcdir := $(shell readlink -f ${srcdir})
22 +abstop_srcdir := $(shell cd ${top_srcdir} && pwd)
23 +abssrcdir := $(shell cd ${srcdir} && pwd)
24
25 ifeq (${abstop_srcdir},)
26 $(error Path resolution of ${top_srcdir} failed)