gettext-full: fix relocatable patch
Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 48420
This commit is contained in:
parent
1c4d5aa207
commit
81868a8619
1 changed files with 2 additions and 2 deletions
|
@ -6,7 +6,7 @@
|
||||||
# - gettext_datadir directory where the data files are stored.
|
# - gettext_datadir directory where the data files are stored.
|
||||||
-prefix="@prefix@"
|
-prefix="@prefix@"
|
||||||
+if [ -n "$STAGING_DIR" ]; then
|
+if [ -n "$STAGING_DIR" ]; then
|
||||||
+ prefix="$STAGING_DIR/../host"
|
+ prefix="$STAGING_DIR/host"
|
||||||
+else
|
+else
|
||||||
+ prefix="@prefix@"
|
+ prefix="@prefix@"
|
||||||
+fi
|
+fi
|
||||||
|
@ -21,7 +21,7 @@
|
||||||
# - gettext_datadir directory where the data files are stored.
|
# - gettext_datadir directory where the data files are stored.
|
||||||
-prefix="@prefix@"
|
-prefix="@prefix@"
|
||||||
+if [ -n "$STAGING_DIR" ]; then
|
+if [ -n "$STAGING_DIR" ]; then
|
||||||
+ prefix="$STAGING_DIR/../host"
|
+ prefix="$STAGING_DIR/host"
|
||||||
+else
|
+else
|
||||||
+ prefix="@prefix@"
|
+ prefix="@prefix@"
|
||||||
+fi
|
+fi
|
||||||
|
|
Loading…
Reference in a new issue