This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Bug in src/Makefile.am?


> Line 308 here
> 
>     http://gcc.gnu.org/git/?p=gcc.git;a=blob;f=libstdc%2B%2B-v3/src/Makefile.am;h=267a3db496b283a1481224f219f5ea32d4572270;hb=a1b2a5248015b58d04380d286aab4651c948bd22#l302
> 
> seems to be bugging out for me. My VPATH contains the string
> "src/cross", so everything gets messed up by this line.
> 
> What's the proper fix? I don't really understand the interplay of sed
> and automake here.

I think this vpath sedding can be removed entirely from the stamp-debug
rule. It's not doing anything as far as I can tell with a quick look.

This seems to only impact --enable-libstdcxx-debug configured builds.

I'm testing the following patch, and will check it in if it completes.

-benjamin

diff --git a/libstdc++-v3/src/Makefile.am b/libstdc++-v3/src/Makefile.am
index 267a3db..6a7c6d5 100644
--- a/libstdc++-v3/src/Makefile.am
+++ b/libstdc++-v3/src/Makefile.am
@@ -305,7 +305,6 @@ build-debug: stamp-debug
          mv Makefile Makefile.tmp; \
          sed -e 's,all-local: all-once,all-local:,' \
              -e 's,install-data-local:
install-data-once,install-data-local:,' \
-             -e '/vpath/!s,src/c,src/debug/c,' \
          < Makefile.tmp > Makefile ; \
          rm -f Makefile.tmp ; \
          $(MAKE) CXXFLAGS='$(DEBUG_FLAGS)' \


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]