AIX下编译python程序

+ AIX下编译python程序

++ gcc -shared python-config --cflags python-config --ldflags downAcctItemOwe.c -s -o downAcctItemOwe

++可执行 xlc_r -q64 -D_LARGE_FILES -D__XCOFF32__ -D__XCOFF64__ -brtl -qstaticinline -bI:/acct/bigzhu/python252/lib/python2.5/config/python.exp downAcctItemOwe.c -L/acct/bigzhu/python252/lib/python2.5/config -lpthread -ldl -lm -lpython2.5 -s -o downAcctItemOwe

++编译o xlc_r -q64 -DNDEBUG -O -g -I/acct/bigzhu/python252/include/python2.5 -L/acct/bigzhu/python252/lib/python2.5/config -lpthread -ldl -lm -lpython2.5 -c downAcctItemOwe.c -o downAcctItemOwe.o ++可执行 /acct/bigzhu/python252/lib/python2.5/config/ld_so_aix xlc_r -q64 -g -L/acct/bigzhu/python252/lib/python2.5/config -lpthread -ldl -lm -lpython2.5 -bI:/acct/bigzhu/python252/lib/python2.5/config/python.exp downAcctItemOwe.o -o downAcctItemOwe

++.o xlc_r -q64 -g -L/acct/bigzhu/python252/lib/python2.5/config -lpthread -ldl -lm -lpython2.5 -bI:/acct/bigzhu/python252/lib/python2.5/config/python.exp ./downAcctItemOwe.c -o downAcctItemOwe.o

++之前

xlc_r -q64 -o downAcctItemOwe.o -c -q64 -bnoquiet -g -bI:/acct/bigzhu/python252/lib/python2.5/config/python.exp python-config --cflags python-config --ldflags downAcctItemOwe.c

xlc_r -q64 -o downAcctItemOwe.o -c -bnoquiet -g -bI:/acct/bigzhu/python252/lib/python2.5/config/python.exp -L/acct/bigzhu/python252/lib/python2.5/config -lpthread -ldl -lutil -lm -lpython2.5 -I/acct/bigzhu/python252/include/python2.5 downAcctItemOwe.c

++不能用-O xlc_r -q64 -s -o downAcctItemOwe.o -c -q64 -bnoquiet -g -bI:/acct/bigzhu/python252/lib/python2.5/config/python.exp -I/acct/bigzhu/python252/include/python2.5 -I/acct/bigzhu/python252/include/python2.5 -DNDEBUG -L/acct/bigzhu/python252/lib/python2.5/config -lpthread -ldl -lutil -lm -lpython2.5 downAcctItemOwe.c

gcc -shared `python-config --cflags` `python-config --ldflags` "$C" -s -o "$MO"

xlc_r -shared -q64 -s -o downAcctItemOwe -c -q64 -bnoquiet -g -bI:/acct/bigzhu/python252/lib/python2.5/config/python.exp -I/acct/bigzhu/python252/include/python2.5 -I/acct/bigzhu/python252/include/python2.5 -DNDEBUG -L/acct/bigzhu/python252/lib/python2.5/config -lpthread -ldl -lutil -lm -lpython2.5 downAcctItemOwe.o

xlC_r -q64 -shared -I/acct/bigzhu/python252/include/python2.5 -I/acct/bigzhu/python252/include/python2.5 -DNDEBUG -L/acct/bigzhu/python252/lib/python2.5/config -ldl -lm -lpython2.5 downAcctItemOwe.c -s -o downAcctItemOwe