Article View: gnu.g++.lib.bug
Article #372Patch for libg++-2.3 makefiles
From: Jason Merrill
Date: Sat, 12 Dec 1992 02:56
Date: Sat, 12 Dec 1992 02:56
93 lines
3392 bytes
3392 bytes
The first two patches make the C and C++ compilers for the target default
to the same as those for the host, rather than to $(CC) and gcc.
The next patch allows libg++ to be built in parallel (with the -j option to
GNU make); previously the dependencies were not indicated, so it would try
to compile stuff in src while it was creating _G_config.h, which didn't
work.
The final patch makes the C++ compiler used for test-install the same as
the one used for the build.
*** Makefile.in.orig Thu Dec 3 21:56:05 1992
--- Makefile.in Fri Dec 11 21:50:35 1992
***************
*** 89,95 ****
echo $${rootme}/gcc/gcc -B$${rootme}/gcc/; \
else \
if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
! echo $(CC); \
else \
t='$(program_transform_name)'; echo gcc | sed -e '' $$t; \
fi; \
--- 89,95 ----
echo $${rootme}/gcc/gcc -B$${rootme}/gcc/; \
else \
if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
! echo $(CC_FOR_BUILD); \
else \
t='$(program_transform_name)'; echo gcc | sed -e '' $$t; \
fi; \
***************
*** 100,106 ****
echo $${rootme}/gcc/gcc -B$${rootme}/gcc/; \
else \
if [ "$(host_cpu)-$(host_vendor)-$(host_os)" = "$(target_cpu)-$(target_vendor)-$(target_os)" ] ; then \
! echo gcc; \
else \
t='$(program_transform_name)'; echo gcc | sed -e '' $$t; \
fi; \
--- 100,106 ----
echo $${rootme}/gcc/gcc -B$${rootme}/gcc/; \
else \
if [ "$(host_cpu)-$(host_vendor)-$(host_os)" = "$(target_cpu)-$(target_vendor)-$(target_os)" ] ; then \
! echo $(CXX_FOR_BUILD); \
else \
t='$(program_transform_name)'; echo gcc | sed -e '' $$t; \
fi; \
*** libg++/Makefile.in.orig Wed Dec 9 17:38:32 1992
--- libg++/Makefile.in Fri Dec 11 21:50:36 1992
***************
*** 192,202 ****
$(RANLIB) $(TARGETLIB)
@touch stamp-$(TARGETLIB)
! in-src:
@rootme=`pwd`/ ; export rootme ; cd src ; \
$(MAKE) $(FLAGS_TO_PASS)
! in-io:
@rootme=`pwd`/ ; export rootme ; cd $(IO_DIR) ; \
$(MAKE) $(FLAGS_TO_PASS) stamp
--- 192,204 ----
$(RANLIB) $(TARGETLIB)
@touch stamp-$(TARGETLIB)
! src/stamp: in-src ;
! in-src: _G_config.h
@rootme=`pwd`/ ; export rootme ; cd src ; \
$(MAKE) $(FLAGS_TO_PASS)
! $(IO_DIR)/stamp: in-io ;
! in-io: _G_config.h
@rootme=`pwd`/ ; export rootme ; cd $(IO_DIR) ; \
$(MAKE) $(FLAGS_TO_PASS) stamp
***************
*** 319,325 ****
fi ; \
done
cd test-install; $(MAKE) $(TEST_INSTALL) \
! CXX=$(bindir)/gcc COMPILE_FLAGS="" LIBS=-lg++
###**######################################################################
#
--- 321,327 ----
fi ; \
done
cd test-install; $(MAKE) $(TEST_INSTALL) \
! "CXX=$(CXX)" COMPILE_FLAGS="" LIBS=-lg++
###**######################################################################
#
Technical Details
Message-ID:
<JASON.92Dec11215641@it.claremont.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!jarthur.claremont.edu!jasonShow Full Headers
Complete Article Headers
Newsgroups: gnu.g++.lib.bug Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!jarthur.claremont.edu!jason From: jason@jarthur.claremont.edu (Jason Merrill) Subject: Patch for libg++-2.3 makefiles Message-ID: <JASON.92Dec11215641@it.claremont.edu> Sender: gnulists@ai.mit.edu Organization: Minimal Distribution: gnu Date: Sat, 12 Dec 1992 02:56:41 GMT Approved: bug-lib-g++@prep.ai.mit.edu Lines: 94