delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2001/05/12/04:48:39

Date: Sat, 12 May 2001 11:33:49 +0300 (WET)
From: Andris Pavenis <pavenis AT lanet DOT lv>
To: djgpp-workers AT delorie DOT com
Subject: [PATCH] linking mkdoc.exe with libstdcxx.a (needed for gcc-3.0)
Message-ID: <Pine.A41.4.05.10105121127450.47370-100000@ieva06.lanet.lv>
MIME-Version: 1.0
Reply-To: djgpp-workers AT delorie DOT com

Building src/mkdoc/mkdoc.cc with gcc-3.0 dev. version fails if not linked 
with one of libstdc++ or libsupc++. The latest one is new and perhaps
it's best not to add detection of presence of this library, so I used
libstdc++

It should break with gcc-2.7.2.1 (libstdcx.a), but I think it's too
outdated and all later versions should be Ok 

Andris

*** djgpp/src/mkdoc/makefile~1	Thu Jan  1 22:28:14 1998
--- djgpp/src/mkdoc/makefile	Fri May 11 17:29:10 2001
***************
*** 7,13 ****
  all :: $(HOSTBIN)/mkdoc.exe
  
  $(HOSTBIN)/mkdoc.exe : mkdoc.cc
! 	$(GCC) mkdoc.cc -o $@
  
  clean ::
  	@-$(MISC) rm $(HOSTBIN)/mkdoc.exe
--- 7,13 ----
  all :: $(HOSTBIN)/mkdoc.exe
  
  $(HOSTBIN)/mkdoc.exe : mkdoc.cc
! 	$(GCC) mkdoc.cc $(LIBSTDCXX) -o $@
  
  clean ::
  	@-$(MISC) rm $(HOSTBIN)/mkdoc.exe
*** djgpp/src/makefile.def~1	Tue Dec 14 16:45:00 1999
--- djgpp/src/makefile.def	Fri May 11 17:27:56 2001
***************
*** 36,41 ****
--- 36,42 ----
  LD = ld
  STRIP = strip
  BISON = bison
+ LIBSTDCXX = -lstdcxx
  
  else
  
***************
*** 58,63 ****
--- 59,65 ----
  LD = ld
  STRIP = strip
  BISON = bison
+ LIBSTDCXX = -lstdc++
  
  # You may need to replace coff-go32 with coff-i386 in lib/djgpp.djl or
  # edit your cross_ld to replace coff-i386 with coff-go32 (as I did)

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019