home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / src / Tools / libg++-2.5.3 / README < prev   
Encoding:
Text File  |  1995-07-14  |  1.2 KB  |  51 lines

  1. After reading this file, you should read README.orig.
  2.  
  3. To build GNU libg++ 2.5.3, you'll need to do a few things
  4. first.  
  5.  
  6. First, make sure that gcc is installed, and that you have
  7. configured it for C++.  The Skunkworks gcc is already built
  8. that way.
  9.  
  10. Run "./configure --prefix=/usr/local --target=i486-unknown-sco3.2v4.2"
  11.  
  12. The Makefile will be generated with some macros which cause
  13. some problems.  Edit the Makefile.  You'll see something like
  14.  
  15.    CXX_FOR_TARGET = ` \
  16.      if [ -f $${rootme}/gcc/Makefile ] ; then \
  17.        echo $${rootme}/gcc/xgcc -B$${rootme}/gcc/; \
  18.      else \
  19.        if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
  20.          echo $(CXX); \
  21.        else \
  22.          t='$(program_transform_name)'; echo gcc | sed -e '' $$t; \
  23.        fi; \
  24.      fi`
  25.  
  26. You want to change this to
  27.  
  28.     CXX_FOR_TARGET=$(CXX)
  29.  
  30. The full list of macros like this that you should change is:
  31.     CXX_FOR_TARGET = $(CXX)
  32.     CC_FOR_TARGET = $(CC)
  33.     CC_FOR_BUILD = $(CC)
  34.     CXX_FOR_BUILD = $(CXX)
  35.     AS_FOR_TARGET = $(AS)
  36.     AR_FOR_TARGET = $(AR)
  37.     RANLIB_FOR_TARGET = $(RANLIB)
  38.     NM_FOR_TARGET = $(NM)
  39.  
  40. Next, edit libg++/src/builtin.h and comment out lines which
  41. mention the "abs" and "sqr" functions, as these conflict with
  42. stuff in <math.h>.
  43.  
  44. Now, run
  45.  
  46.     make
  47.  
  48. and then
  49.  
  50.     make install
  51.