Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 5 May 1996 16:53:30 -0400 (EDT)
From:      Marc Ramirez <mrami@mrami.com>
To:        questions@freebsd.org
Subject:   not stripping my world...
Message-ID:  <Pine.BSF.3.91.960505125542.288C-100000@boner.mrami.com>

next in thread | raw e-mail | index | archive | help

Call me crazy, but I want to leave the source filenames in my 
executables.  I look through bsd.prog.mk and try the following:

root[/usr/src]# export DEBUG_FLAGS=-g
root[/usr/src]# make world

This, in my estimation, should compile the programs with -g and 
undefine $(STRIP). But it dies when pre-cleaning strip:

===> usr.bin/strip
"Makefile", line 11: Malformed conditional (${STRIP:M-s} != "")
"Makefile", line 13: if-less endif
"Makefile", line 13: Need an operator
Fatal errors encountered -- cannot continue
*** Error code 1

Is this expected or is it a bug? The following patch fixes the makefile:

*** /usr/src/usr.bin/strip/Makefile.old Sun May  5 13:27:25 1996
--- /usr/src/usr.bin/strip/Makefile     Sun May  5 13:27:38 1996
***************
*** 8,15 ****
--- 8,17 ----
  
  maybe_stripped: strip
        cp -p strip maybe_stripped
+ .ifdef STRIP
  .if ${STRIP:M-s} != ""
        ./strip maybe_stripped
+ .endif
  .endif
  
  install: maninstall


Marc.

--
An elephant is a mouse with an operating system.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.91.960505125542.288C-100000>