bug-ncurses
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] teach ncurses-config about sysroot


From: Robert Schwebel
Subject: [PATCH] teach ncurses-config about sysroot
Date: Thu, 24 Jun 2010 14:37:31 +0200
User-agent: Mutt/1.5.18 (2008-05-17)

From: Marc Kleine-Budde <address@hidden>

This patch teaches ncursrs-config about sysroot

Signed-off-by: Marc Kleine-Buddde <address@hidden>
Signed-off-by: Robert Schwebel <address@hidden>

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]