gettext-full: fix relocatable patch

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

SVN-Revision: 48420
v19.07.3_mercusys_ac12_duma
Felix Fietkau 8 years ago
parent 1c4d5aa207
commit 81868a8619

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

Loading…
Cancel
Save