[paketler-commits] r24215 - devel/system/devel/gcc
paketler-commits at pardus.org.tr
paketler-commits at pardus.org.tr
1 Mayıs 2007 Sal 22:53:06 EEST
Author: cartman
Date: Tue May 1 22:53:05 2007
New Revision: 24215
Modified:
devel/system/devel/gcc/actions.py
Log:
cleanup unneeded workDIR usage
Modified: devel/system/devel/gcc/actions.py
=================================================================
--- devel/system/devel/gcc/actions.py (original)
+++ devel/system/devel/gcc/actions.py Tue May 1 22:53:05 2007
@@ -55,29 +55,29 @@
--without-system-libunwind \
--with-system-zlib" % (PREFIX, BINPATH, INCDIR, DATAPATH, MANPATH, INFOPATH, STDCXX_INCDIR, get.HOST(), get.HOST())
- shelltools.makedirs("%s/build-default-i686-pc-linux-gnu" % get.workDIR())
- shelltools.cd("%s/build-default-i686-pc-linux-gnu" % get.workDIR())
+ shelltools.makedirs("build-default-i686-pc-linux-gnu")
+ shelltools.cd("build-default-i686-pc-linux-gnu")
- shelltools.system("%s/%s/configure %s" % (get.workDIR(), WorkDir, conf))
+ shelltools.system("../configure %s" % conf)
def build():
# gcc don't like mcpu flag while bootstrapping itself
shelltools.export("CFLAGS", "-march=i686 -O2 -pipe -fomit-frame-pointer -U_FORTIFY_SOURCE")
shelltools.export("CXXFLAGS", "-march=i686 -O2 -pipe -fomit-frame-pointer -U_FORTIFY_SOURCE")
- shelltools.cd("%s/build-default-i686-pc-linux-gnu" % get.workDIR())
+ shelltools.cd("build-default-i686-pc-linux-gnu")
autotools.make('LDFLAGS="%s" LIBPATH="%s" BOOT_CFLAGS="%s" profiledbootstrap' % (get.LDFLAGS(), LIBPATH, get.CFLAGS()))
def install():
- shelltools.cd("%s/build-default-i686-pc-linux-gnu" % get.workDIR())
+ shelltools.cd("build-default-i686-pc-linux-gnu")
# Do not allow symlinks in include as this can break the build.
- for file in shelltools.ls("%s/build-default-i686-pc-linux-gnu/gcc/include/*" % get.workDIR()):
+ for file in shelltools.ls("gcc/include/*"):
if shelltools.isLink(file):
shelltools.unlink(file)
# Remove generated headers, as they can cause things to break
- for file in shelltools.ls("%s/build-default-i686-pc-linux-gnu/gcc/include/*" % get.workDIR()):
+ for file in shelltools.ls("gcc/include/*"):
if shelltools.isFile(file):
if not shelltools.system("grep -q \"auto-edited\" %s" % file):
shelltools.unlink(file)
Paketler-commits mesaj listesiyle ilgili
daha fazla bilgi