bug-ncurses
[Top][All Lists]
Advanced

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

ncurses/Makefile.in


From: vcoxvco
Subject: ncurses/Makefile.in
Date: Wed, 31 Oct 2012 21:55:32 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:16.0) Gecko/20121025 Thunderbird/16.0.2

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


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

Regards
Vassili

--
V. Courzakis
email: address@hidden



reply via email to

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