From: Felix Fietkau Date: Wed, 20 Jan 2016 23:21:03 +0000 (+0000) Subject: gettext-full: fix relocatable patch X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=81868a86194b251e262e7bc351b41f0b79be0a52;p=openwrt%2Fstaging%2Fdedeckeh.git gettext-full: fix relocatable patch Signed-off-by: Felix Fietkau SVN-Revision: 48420 --- 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