> While you are adding this to fink, would it be possible to use some > MacOS X system call to detect the presence of 64-bit support on the > processor? I have thought it would be handy to have such a flag as > available for checking in info scripts for such cases as a > gcc42-64-bit package (which would be a native 64-bit build of the gcc > compiler itself).
Hi all, One thing I've found works is to compile a 64-bit dummy binary at patch-time or configure-time. % echo "int main(int, char*[]) { return 0; }" > test64.cc % g++ -m64 test64.cc -o test64 % ./test64 > /dev/null 2>&1 the execution will fail if 64-bit is unsupported. Does this suffice? I was able to test an early draft of your gcc4 packaging that way (back when we wanted to conditionally --disable-multilib). Maybe even useful as a pseudo-package for 64b dependency tracking? David Fang Computer Systems Laboratory Electrical & Computer Engineering Cornell University http://www.csl.cornell.edu/~fang/ -- (2400 baud? Netscape 3.0?? lynx??? No problem!) ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Fink-devel mailing list Fink-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fink-devel