bug-ncurses
[Top][All Lists]
Advanced

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

Re: ncurses/Makefile.in


From: vcoxvco
Subject: Re: ncurses/Makefile.in
Date: Wed, 05 Dec 2012 22:12:48 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/17.0 Thunderbird/17.0

Hi,

in ncurses/Makefile.in the line

CPPFLAGS       = -DHAVE_CONFIG_H -I../ncurses -I$(srcdir) @CPPFLAGS@

may cause problems when specifying CPPFLAGS during the call to
configure, i.e. something like
     ./configure [...] CPPFLAGS="-Ipath to some include dir"

In my case, "path to some include dir" was the include directory of a
cross compiler for PowerPC running on Linux - it contains its own curses
header files, so cross compiling failed, as the original ncurses include
(-I../include) is put after the resolved CPPFLAGS.

This patch has fixed this (ncurses-5.9-20121017):

I didn't get any reaction so far - has my mail been lost or overlooked?

Regards
Vassili

--- 8< ---

--- Makefile.in.orig    2012-10-23 23:15:18.000000000 +0200
+++ Makefile.in 2012-10-23 23:13:59.000000000 +0200
@@ -94,7 +94,7 @@
  CFLAGS         = @CFLAGS@

  INCDIR         = $(srcdir)/../include
-CPPFLAGS       = -DHAVE_CONFIG_H -I../ncurses -I$(srcdir) @CPPFLAGS@
+CPPFLAGS = -DHAVE_CONFIG_H -I../ncurses -I. -I../include -I$(srcdir) @CPPFLAGS@

  CCFLAGS                = $(CPPFLAGS) $(CFLAGS)

--- 8< ---

--
V. Courzakis
email: address@hidden




reply via email to

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