gettext-full: fix relocatable patch

Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 48420
lede-17.01
Felix Fietkau 2016-01-20 23:21:03 +00:00
parent 1c4d5aa207
commit 81868a8619
1 changed files with 2 additions and 2 deletions

View File

@ -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