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:
parent
8af2fb3f08
commit
35b92adcfc
|
@ -77,7 +77,12 @@ sub wanted {
|
||||||
File::Find::find({wanted => \&wanted}, '.');
|
File::Find::find({wanted => \&wanted}, '.');
|
||||||
|
|
||||||
print C "";
|
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;
|
my %defs;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue