home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / gnu / bash / bug / 750 < prev    next >
Encoding:
Internet Message Format  |  1993-01-23  |  1.3 KB

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!magnus.acs.ohio-state.edu!cis.ohio-state.edu!vela.acs.oakland.edu!vtessier
  2. From: vtessier@vela.acs.oakland.edu (Vince Tessier)
  3. Newsgroups: gnu.bash.bug
  4. Subject: Re: How to build with -O?
  5. Date: 22 Jan 1993 21:08:02 -0500
  6. Organization: Oakland University, Rochester MI.
  7. Lines: 22
  8. Sender: daemon@cis.ohio-state.edu
  9. Approved: bug-bash@prep.ai.mit.edu
  10. Distribution: gnu
  11. Message-ID: <vtessier.727670581@vela>
  12. References: <NEAL.93Jan21142454@neal.ctd.comsat.com>
  13.  
  14. neal@ctd.COMsat.COM (Neal Becker) writes:
  15.  
  16. >What's the easiest way to build bash-1.12 with -O instead of -g?
  17.  
  18. My diffs say I changed cpp-Makefile as follows (from 'diff -u'):
  19.  
  20. @@ -192,7 +192,7 @@
  21.  SYSTEM_FLAGS = $(LINEBUF) $(VPRINTF) $(UNISTD) $(GROUPS) $(RESOURCE) \
  22.         $(SIGHANDLER) $(SYSDEP) $(WAITH) $(GETWD) $(DUP2) $(STRERROR) \
  23.         -D$(MACHINE) -D$(OS)
  24. -DEBUG_FLAGS = $(PROFILE_FLAGS) -g
  25. +DEBUG_FLAGS = $(PROFILE_FLAGS) -O2
  26.  LDFLAGS        = $(NOSHARE) $(SYSDEP_LD) $(EXTRA_LD_PATH) $(DEBUG_FLAGS)
  27.  CFLAGS = $(DEBUG_FLAGS) $(SYSTEM_FLAGS) -DSHELL $(ALLOCA_CFLAGS)
  28.  CPPFLAGS= -I$(LIBSRC)
  29.  
  30. DEBUG_FLAGS was defined as '-g'; I changed it to '-O2'
  31.  
  32. Look also at the Makefiles in the subdirs under 'lib'
  33. -- 
  34. Vince Tessier (vtessier@vela.acs.oakland.edu)        "Execute Plan `B'."
  35.  
  36.