Build Funktionen für 64 Bit Build in If abfrage gekapselt, da sonst der

32 Bit Build (auf Nativ 32 Bit Systemen) in die Hose geht



git-svn-id: svn://svn.compuextreme.de/Viitor/V962/ViitorMake@4807 504e572c-2e33-0410-9681-be2bf7408885
This commit is contained in:
kueller 2009-06-07 11:27:55 +00:00
parent 9b792ebba0
commit 491065c65d

View File

@ -73,11 +73,10 @@ SRCPATH=Development/Interpreter
(( MKPKG = $MKPKG | 128 ))
premk() {
echo "Nothing to do for premk()"
sed -i "s@/usr/X11R6@/usr/X11R7@g" setup.py
}
mk32() {
sed -i "s@/usr/X11R6@${XORG_PREFIX}@g" setup.py &&
CC="gcc ${BUILDOPTIONS32}" \
CXX="g++ ${BUILDOPTIONS32}" \
./configure --prefix=/usr \
@ -118,14 +117,17 @@ mk() {
--enable-shared
make -j $NUMCPU
make -j $NUMCPU DESTDIR=$TMPROOT install
mv -v $TMPROOT/usr/bin/python{,-64} &&
mv -v $TMPROOT/usr/bin/python2.6{,-64} &&
mv -v $TMPROOT/usr/include/python2.6/pyconfig{,-64}.h
ln -s multiarch_wrapper $TMPROOT/usr/bin/python
ln -s multiarch_wrapper $TMPROOT/usr/bin/python2.6
if [ "MK64BIT" == "true" ]; then
mv -v $TMPROOT/usr/bin/python{,-64} &&
mv -v $TMPROOT/usr/bin/python2.6{,-64} &&
mv -v $TMPROOT/usr/include/python2.6/pyconfig{,-64}.h
ln -s multiarch_wrapper $TMPROOT/usr/bin/python
ln -s multiarch_wrapper $TMPROOT/usr/bin/python2.6
fi
}
postmk() {
if [ "$MK64BIT" == "true" ]; then
cat > $TMPROOT/usr/include/python2.6/pyconfig.h << "EOF"
/* pyconfig.h - Stub Header */
#ifndef __STUB__PYCONFIG_H__
@ -143,4 +145,5 @@ defined (__s390x__)
#endif /* __STUB__PYCONFIG_H__ */
EOF
fi
}