add workaround for musl (define _BSD_SOURCE as well) which is even *more*
ugly than the one for dietlibc (the other one misunderstanding the *real* meaning of that flag), by $CC divining, until such time as all the Linux C libraries will honour _ALL_SOURCE (I wish)…
This commit is contained in:
		
							
								
								
									
										5
									
								
								Build.sh
									
									
									
									
									
								
							
							
						
						
									
										5
									
								
								Build.sh
									
									
									
									
									
								
							| @@ -1,5 +1,5 @@ | ||||
| #!/bin/sh | ||||
| srcversion='$MirOS: src/bin/mksh/Build.sh,v 1.582 2012/09/18 14:18:59 tg Exp $' | ||||
| srcversion='$MirOS: src/bin/mksh/Build.sh,v 1.583 2012/09/27 18:23:43 tg Exp $' | ||||
| #- | ||||
| # Copyright (c) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, | ||||
| #		2011, 2012 | ||||
| @@ -594,6 +594,7 @@ IRIX*) | ||||
| Linux) | ||||
| 	case $CC in | ||||
| 	*tendracc*) ;; | ||||
| 	*/musl-gcc*) add_cppflags -D_GNU_SOURCE -D_BSD_SOURCE ;; | ||||
| 	*) add_cppflags -D_GNU_SOURCE ;; | ||||
| 	esac | ||||
| 	add_cppflags -DSETUID_CAN_FAIL_WITH_EAGAIN | ||||
| @@ -1491,7 +1492,7 @@ else | ||||
| 		#define EXTERN | ||||
| 		#define MKSH_INCLUDES_ONLY | ||||
| 		#include "sh.h" | ||||
| 		__RCSID("$MirOS: src/bin/mksh/Build.sh,v 1.582 2012/09/18 14:18:59 tg Exp $"); | ||||
| 		__RCSID("$MirOS: src/bin/mksh/Build.sh,v 1.583 2012/09/27 18:23:43 tg Exp $"); | ||||
| 		int main(void) { printf("Hello, World!\n"); return (0); } | ||||
| EOF | ||||
| 	case $cm in | ||||
|   | ||||
		Reference in New Issue
	
	Block a user