home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!magnus.acs.ohio-state.edu!cis.ohio-state.edu!vela.acs.oakland.edu!vtessier
- From: vtessier@vela.acs.oakland.edu (Vince Tessier)
- Newsgroups: gnu.bash.bug
- Subject: Re: How to build with -O?
- Date: 22 Jan 1993 21:08:02 -0500
- Organization: Oakland University, Rochester MI.
- Lines: 22
- Sender: daemon@cis.ohio-state.edu
- Approved: bug-bash@prep.ai.mit.edu
- Distribution: gnu
- Message-ID: <vtessier.727670581@vela>
- References: <NEAL.93Jan21142454@neal.ctd.comsat.com>
-
- neal@ctd.COMsat.COM (Neal Becker) writes:
-
- >What's the easiest way to build bash-1.12 with -O instead of -g?
-
- My diffs say I changed cpp-Makefile as follows (from 'diff -u'):
-
- @@ -192,7 +192,7 @@
- SYSTEM_FLAGS = $(LINEBUF) $(VPRINTF) $(UNISTD) $(GROUPS) $(RESOURCE) \
- $(SIGHANDLER) $(SYSDEP) $(WAITH) $(GETWD) $(DUP2) $(STRERROR) \
- -D$(MACHINE) -D$(OS)
- -DEBUG_FLAGS = $(PROFILE_FLAGS) -g
- +DEBUG_FLAGS = $(PROFILE_FLAGS) -O2
- LDFLAGS = $(NOSHARE) $(SYSDEP_LD) $(EXTRA_LD_PATH) $(DEBUG_FLAGS)
- CFLAGS = $(DEBUG_FLAGS) $(SYSTEM_FLAGS) -DSHELL $(ALLOCA_CFLAGS)
- CPPFLAGS= -I$(LIBSRC)
-
- DEBUG_FLAGS was defined as '-g'; I changed it to '-O2'
-
- Look also at the Makefiles in the subdirs under 'lib'
- --
- Vince Tessier (vtessier@vela.acs.oakland.edu) "Execute Plan `B'."
-
-