httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sander Temme <>
Subject [1.3] (not) stripping httpd 1.3 binary on Darwin
Date Sat, 12 Feb 2005 22:13:42 GMT
Dear Dev folks,

This weekend I felt the need to gdb step through an httpd 1.3 build on 
my Powerbook. Imagine my surprise when the installed httpd, built with 
CFLAGS="-DDEBUG -g -O0", was devoid of symbols.

A little investigation led me to the fact that the configure script has 
a special case for Darwin that causes the to strip the 
installed core binaries, regardless of any --without-execstrip flags to 

No other platform does this. I wonder whether this may be in the tree 
because Apple doesn't want to ship unstripped binaries? Wsanchez?

Anyway, the expected behaviour would be to install unstripped binaries 
of everything when the --without-execstrip flag is given. The following 
patch fixes that by applying the same logic to iflags_core and 
iflags_dso that is already applied to iflags_programs (which directs 
installing the support binaries):

Index: configure
--- configure   (revision 153561)
+++ configure   (working copy)
@@ -927,6 +927,8 @@
              iflags_program=`echo "$iflags_program" | sed -e 's/-s//'`
+            iflags_core=`echo "$iflags_core" | sed -e 's/-S//' -e 
+            iflags_dso=`echo "$iflags_dso" | sed -e 's/-S//' -e 

This does the trick for me, and should be a noop on most platforms.

Note that on no other platform do we install a stripped httpd: the 
--without-execstrip only has effect on the support binaries. Is this 
what we want?


PGP FP: 51B4 8727 466A 0BC3 69F4  B7B8 B2BE BC40 1529 24AF

View raw message