[Top][All Lists]

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

curses.h and new cpp from gcc-5 and above

From: Dr. Werner Fink
Subject: curses.h and new cpp from gcc-5 and above
Date: Wed, 21 Jan 2015 14:03:31 +0100
User-agent: Mutt/1.5.21 (2010-09-15)


with new gcc suite it is required to use -P option if used for generating
curses.h as otherwise cpp line markers will bewilder the awk used in

See attached patch from our gcc people


  "Having a smoking section in a restaurant is like having
          a peeing section in a swimming pool." -- Edward Burr
--- ncurses/Makefile.in.orig    2015-01-21 13:27:02.427199242 +0100
+++ ncurses/Makefile.in 2015-01-21 13:27:11.946311063 +0100
@@ -219,7 +219,7 @@
        sh -e $(srcdir)/run_cmd.sh $(tinfo)/MKfallback.sh $(TERMINFO) 
 ./lib_gen.c : $(base)/MKlib_gen.sh ../include/curses.h
-       sh -e $(base)/MKlib_gen.sh "$(CPP) $(CPPFLAGS)" "$(AWK)" generated 
<../include/curses.h >$@
+       sh -e $(base)/MKlib_gen.sh "$(CPP) $(CPPFLAGS) -P" "$(AWK)" generated 
<../include/curses.h >$@
 init_keytry.h: make_keys$(BUILD_EXEEXT) keys.list
        ./make_keys$(BUILD_EXEEXT) keys.list > $@

Attachment: signature.asc
Description: Digital signature

reply via email to

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