aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2016-01-20 23:21:03 +0000
committerFelix Fietkau <nbd@openwrt.org>2016-01-20 23:21:03 +0000
commit81868a86194b251e262e7bc351b41f0b79be0a52 (patch)
tree2a826395f094dce8dd375157a18fd7db814f11e9
parent1c4d5aa207a50a6a0b016fb3844cc01436b5551b (diff)
downloadupstream-81868a86194b251e262e7bc351b41f0b79be0a52.tar.gz
upstream-81868a86194b251e262e7bc351b41f0b79be0a52.tar.bz2
upstream-81868a86194b251e262e7bc351b41f0b79be0a52.zip
gettext-full: fix relocatable patch
Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 48420
-rw-r--r--package/libs/gettext-full/patches/000-relocatable.patch4
1 files changed, 2 insertions, 2 deletions
diff --git a/package/libs/gettext-full/patches/000-relocatable.patch b/package/libs/gettext-full/patches/000-relocatable.patch
index c475579b39..c14be72836 100644
--- a/package/libs/gettext-full/patches/000-relocatable.patch
+++ b/package/libs/gettext-full/patches/000-relocatable.patch
@@ -6,7 +6,7 @@
# - gettext_datadir directory where the data files are stored.
-prefix="@prefix@"
+if [ -n "$STAGING_DIR" ]; then
-+ prefix="$STAGING_DIR/../host"
++ prefix="$STAGING_DIR/host"
+else
+ prefix="@prefix@"
+fi
@@ -21,7 +21,7 @@
# - gettext_datadir directory where the data files are stored.
-prefix="@prefix@"
+if [ -n "$STAGING_DIR" ]; then
-+ prefix="$STAGING_DIR/../host"
++ prefix="$STAGING_DIR/host"
+else
+ prefix="@prefix@"
+fi