Patch to eliminate implicit malloc (etc) decls in libsupc++

Phil Edwards phil@jaj.com
Mon May 6 05:36:00 GMT 2002


On Mon, May 06, 2002 at 02:17:06PM +0200, Franz Sirl wrote:
> How does the DEFS variable look like in your Makefile.in/generated 
> Makefile? There should be a -I.. in it (it was for me on linux-gnu, 
> automake-1.4p5-4)

It looks like a mess on my system, but it's because of a failure earlier
in the build.  This patch was just the first symptom, so never mind.

A working build now has -I.. as well as some others.  (The others are
probably harmless, but they were causing problems at one point, and that's
why the whole thing was removed (more on this in the other thread).)
I suggest something like the following, to remove the extraneous -I's.

Index: libsupc++/Makefile.am
===================================================================
RCS file: /home/pme/Repositories/GCC/gcc/libstdc++-v3/libsupc++/Makefile.am,v
retrieving revision 1.31
diff -u -r1.31 Makefile.am
--- libsupc++/Makefile.am       4 May 2002 20:20:29 -0000       1.31
+++ libsupc++/Makefile.am       6 May 2002 12:27:43 -0000
@@ -44,6 +44,9 @@
 # Compile flags that should be constant throughout the build, both for
 # SUBDIRS and for libstdc++-v3 in general.
 OPTIMIZE_CXXFLAGS = @OPTIMIZE_CXXFLAGS@
+# we need DEFS without -I$(srcdir)
+DEFS = @DEFS@ -I..
+

 # These bits are all figured out from configure. Look in acinclude.m4
 # or configure.in to see how they are set. See GLIBCPP_EXPORT_FLAGS
Index: src/Makefile.am
===================================================================
RCS file: /home/pme/Repositories/GCC/gcc/libstdc++-v3/src/Makefile.am,v
retrieving revision 1.105
diff -u -r1.105 Makefile.am
--- src/Makefile.am     19 Mar 2002 19:50:28 -0000      1.105
+++ src/Makefile.am     6 May 2002 12:26:33 -0000
@@ -36,6 +36,8 @@
 # Compile flags that should be constant throughout the build, both for
 # SUBDIRS and for libstdc++-v3 in general.
 OPTIMIZE_CXXFLAGS = @OPTIMIZE_CXXFLAGS@
+# we need DEFS without -I$(srcdir)
+DEFS = @DEFS@ -I..

 # These bits are all figured out from configure. Look in acinclude.m4
 # or configure.in to see how they are set. See GLIBCPP_EXPORT_FLAGS



More information about the Libstdc++ mailing list