From: Subrata <sub...@us...> - 2008-07-24 23:56:18
|
Update of /cvsroot/ltp/ltp/testcases/realtime In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16120/ltp/testcases/realtime Modified Files: config.mk Log Message: When compiling powerpc binaries, gcc defaults to 32 bit. To do some tests I needed to have a 64 bit binary. Since I'm using realtime, I modified config.mk as below. My questions: is there any official way to turn LTP in 64bit? If not, what shall we do then? Should LTP default to 32 or native-arch bit? Shall we use something like: "if (uname -m) ..." or use a command line option? Any comment? Gilles. According to man gcc: -m64 Generate code for a 32-bit or 64-bit environment. The 32-bit environment sets int, long and pointer to 32 bits and generates code that runs on any i386 system. The 64-bit environment sets int to 32 bits and long and pointer to 64 bits and generates code for AMD's x86-64 architecture. For darwin only the -m64 option turns off the -fno-pic and -mdynamic-no-pic options. This seems like the right thing to do to me. Gilles, have you confirmed that this doesn't break things on the x86_64 platforms? No objection from me. --Darren I've also run the involved tests on an x86_64 machine and it was OK. Gilles Carry <Gil...@bu...>. Index: config.mk =================================================================== RCS file: /cvsroot/ltp/ltp/testcases/realtime/config.mk,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** config.mk 20 Apr 2008 17:25:05 -0000 1.4 --- config.mk 24 Jul 2008 23:56:12 -0000 1.5 *************** *** 24,25 **** --- 24,26 ---- -lpthread -lrt -lm + CFLAGS += -m64 |