When compiling native MirOS BSD binaries with SUNpro 12 (don't look like a
car only slower, yes this is possible, and the resulting binary passes the testsuite just fine), the definition of __RCSID() in <sys/cdefs.h> expands to something with __attribute__((used)), which triggers a warning, because __attribute__ in general is supported but the used attribute isn't. Thusly always use our own strings and get rid of the MULTI_RCSID test (introduced because __RCSID() on Darwin is inferiour). Maybe we should fix <sys/cdefs.h> too? #ifdef __SUNPRO_C helps here.
This commit is contained in:
11
Build.sh
11
Build.sh
@ -1,5 +1,5 @@
|
||||
#!/bin/sh
|
||||
# $MirOS: src/bin/mksh/Build.sh,v 1.194 2007/06/04 21:15:27 tg Exp $
|
||||
# $MirOS: src/bin/mksh/Build.sh,v 1.195 2007/06/04 21:27:53 tg Exp $
|
||||
#-
|
||||
# Environment used: CC CFLAGS CPP CPPFLAGS LDFLAGS LIBS NOWARN NROFF TARGET_OS
|
||||
# CPPFLAGS recognised: MKSH_SMALL MKSH_ASSUME_UTF8 MKSH_NEED_MKNOD MKSH_NOPWNAM
|
||||
@ -678,15 +678,6 @@ EOF
|
||||
test 1 = $HAVE_PERSISTENT_HISTORY || \
|
||||
check_categories=$check_categories,no-histfile
|
||||
|
||||
# Should be the _last_ one
|
||||
ac_test multi_idstring '' 'if we can use __RCSID(x) multiple times' <<-'EOF'
|
||||
#define HAVE_MULTI_IDSTRING 1
|
||||
#include "sh.h"
|
||||
__RCSID("one");
|
||||
__RCSID("two");
|
||||
int main(void) { return (0); }
|
||||
EOF
|
||||
|
||||
#
|
||||
# Compiler: Praeprocessor (only if needed)
|
||||
#
|
||||
|
Reference in New Issue
Block a user