]> git.pld-linux.org Git - packages/apache.git/blame - httpd-2.0.48-debuglog.patch
- updated patches to 2.3.8, does not fully compile
[packages/apache.git] / httpd-2.0.48-debuglog.patch
CommitLineData
0e467b1f
AM
1
2__FILE__ expands to the full pathname during VPATH builds; this
3clutters up the debug log (and also bloats binaries very slightly).
4The -pie patch defines AP_FNAME during build which is equivalent
5to basename(__FILE__); use that for debug logging where available.
6
7AP_FNAME uses $(notdir ...), a GNU make extension, so this can't
8go upstream.
9
10Note this patch depends on the pie patch.
11
bcbc8512
ER
12--- httpd-2.3.8/include/http_log.h~ 2010-06-14 22:59:05.000000000 +0300
13+++ httpd-2.3.8/include/http_log.h 2010-09-01 13:18:19.608547664 +0300
14@@ -213,7 +213,11 @@
0e467b1f
AM
15
16 extern int AP_DECLARE_DATA ap_default_loglevel;
17
18+#ifdef AP_FNAME
bcbc8512 19+#define APLOG_MARK AP_FNAME,__LINE__,APLOG_MODULE_INDEX
0e467b1f 20+#else
bcbc8512 21 #define APLOG_MARK __FILE__,__LINE__,APLOG_MODULE_INDEX
0e467b1f
AM
22+#endif
23
24 /**
25 * Set up for logging to stderr.
This page took 0.123773 seconds and 4 git commands to generate.