]>
Commit | Line | Data |
---|---|---|
0e467b1f AM |
1 | |
2 | __FILE__ expands to the full pathname during VPATH builds; this | |
3 | clutters up the debug log (and also bloats binaries very slightly). | |
4 | The -pie patch defines AP_FNAME during build which is equivalent | |
5 | to basename(__FILE__); use that for debug logging where available. | |
6 | ||
7 | AP_FNAME uses $(notdir ...), a GNU make extension, so this can't | |
8 | go upstream. | |
9 | ||
10 | Note this patch depends on the pie patch. | |
11 | ||
7ed09ac4 ER |
12 | --- httpd-2.0.48/include/http_log.h.debuglog |
13 | +++ httpd-2.0.48/include/http_log.h | |
10549188 AM |
14 | @@ -280,7 +280,11 @@ |
15 | * @see ap_log_rerror | |
16 | * @see ap_log_cserror | |
17 | */ | |
0e467b1f | 18 | +#ifdef AP_FNAME |
10549188 | 19 | +#define APLOG_MARK AP_FNAME,__LINE__,APLOG_MODULE_INDEX |
0e467b1f | 20 | +#else |
10549188 | 21 | #define APLOG_MARK __FILE__,__LINE__,APLOG_MODULE_INDEX |
0e467b1f AM |
22 | +#endif |
23 | ||
24 | /** | |
25 | * Set up for logging to stderr. | |
10549188 | 26 |