aboutsummaryrefslogtreecommitdiffstats
path: root/package/utils/e2fsprogs/patches/000-relocatable.patch
blob: 0bf226f9ea7039065a62f31a8c1f98ebfd9c0e47 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
--- a/lib/et/compile_et.sh.in
+++ b/lib/et/compile_et.sh.in
@@ -2,8 +2,14 @@
 #
 #
 
-AWK=@AWK@
-DIR=@datadir@/et
+if test "x$STAGING_DIR" = x ; then
+	AWK=@AWK@
+	DIR=@datadir@/et
+else
+	AWK=awk
+	DIR="$STAGING_DIR/../hostpkg/share/et"
+fi
+
 
 if test "$1" = "--build-tree" ; then
     shift;
--- a/lib/ss/mk_cmds.sh.in
+++ b/lib/ss/mk_cmds.sh.in
@@ -2,10 +2,16 @@
 #
 #
 
-DIR=@datadir@/ss
-AWK=@AWK@
 SED=sed
 
+if test "x$STAGING_DIR" = x ; then
+	DIR=@datadir@/ss
+	AWK=@AWK@
+else
+	DIR="$STAGING_DIR/../hostpkg/share/ss"
+	AWK=awk
+fi
+
 for as_var in \
   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \