Robert Schwebel
2010-06-24 12:37:31 UTC
From: Marc Kleine-Budde <mkl-bIcnvbaLZ9MEGnE8C9+***@public.gmane.org>
This patch teaches ncursrs-config about sysroot
Signed-off-by: Marc Kleine-Buddde <mkl-bIcnvbaLZ9MEGnE8C9+***@public.gmane.org>
Signed-off-by: Robert Schwebel <rsc-bIcnvbaLZ9MEGnE8C9+***@public.gmane.org>
---
misc/ncurses-config.in | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
Index: ncurses-5.7/misc/ncurses-config.in
===================================================================
--- ncurses-5.7.orig/misc/ncurses-config.in
+++ ncurses-5.7/misc/ncurses-config.in
@@ -75,11 +75,11 @@ while test $# -gt 0; do
# compile/link
--cflags)
INCS=
- if test "${prefix}/include" != /usr/include ; then
- INCS="-I${prefix}/include"
+ if test "${SYSROOT}${prefix}/include" != /usr/include ; then
+ INCS="-I${SYSROOT}${prefix}/include"
fi
if test "@WITH_OVERWRITE@" != no ; then
- INCS="$INCS -I${prefix}/include/${THIS}"
+ INCS="$INCS -I${SYSROOT}${prefix}/include/${THIS}"
fi
sed -e 's,^[ ]*,,' -e 's, [ ]*, ,g' -e 's,[ ]*$,,' <<-ENDECHO
$INCS
@@ -87,7 +87,7 @@ ENDECHO
;;
--libs)
sed -e 's,^[ ]*,,' -e 's, [ ]*, ,g' -e 's,[ ]*$,,' <<-ENDECHO
- -L${exec_prefix}/lib @EXTRA_LDFLAGS@ -l${THIS} @LIBS@
+ -L${SYSROOT}${exec_prefix}/lib @EXTRA_LDFLAGS@ -l${THIS} @LIBS@
ENDECHO
;;
# identification
This patch teaches ncursrs-config about sysroot
Signed-off-by: Marc Kleine-Buddde <mkl-bIcnvbaLZ9MEGnE8C9+***@public.gmane.org>
Signed-off-by: Robert Schwebel <rsc-bIcnvbaLZ9MEGnE8C9+***@public.gmane.org>
---
misc/ncurses-config.in | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
Index: ncurses-5.7/misc/ncurses-config.in
===================================================================
--- ncurses-5.7.orig/misc/ncurses-config.in
+++ ncurses-5.7/misc/ncurses-config.in
@@ -75,11 +75,11 @@ while test $# -gt 0; do
# compile/link
--cflags)
INCS=
- if test "${prefix}/include" != /usr/include ; then
- INCS="-I${prefix}/include"
+ if test "${SYSROOT}${prefix}/include" != /usr/include ; then
+ INCS="-I${SYSROOT}${prefix}/include"
fi
if test "@WITH_OVERWRITE@" != no ; then
- INCS="$INCS -I${prefix}/include/${THIS}"
+ INCS="$INCS -I${SYSROOT}${prefix}/include/${THIS}"
fi
sed -e 's,^[ ]*,,' -e 's, [ ]*, ,g' -e 's,[ ]*$,,' <<-ENDECHO
$INCS
@@ -87,7 +87,7 @@ ENDECHO
;;
--libs)
sed -e 's,^[ ]*,,' -e 's, [ ]*, ,g' -e 's,[ ]*$,,' <<-ENDECHO
- -L${exec_prefix}/lib @EXTRA_LDFLAGS@ -l${THIS} @LIBS@
+ -L${SYSROOT}${exec_prefix}/lib @EXTRA_LDFLAGS@ -l${THIS} @LIBS@
ENDECHO
;;
# identification