No section attribute on Mac OS X

This attribute isn't compatible with Mach-O, so avoid this when building
simulat0r on Mac OS X.
This commit is contained in:
Rainer Mueller 2011-08-05 14:23:27 +02:00
parent 8af2fb3f08
commit 35b92adcfc
1 changed files with 6 additions and 1 deletions

View File

@ -77,7 +77,12 @@ sub wanted {
File::Find::find({wanted => \&wanted}, '.');
print C "";
print C qq!__attribute__ ((used, section("table"))) const void * TheTable[]={!;
print C <<EOF;
#ifndef __APPLE__
__attribute__ ((used, section("table")))
#endif /* __APPLE__ */
const void * TheTable[]={
EOF
my %defs;