~ubuntu-branches/ubuntu/quantal/lightning-extension/quantal

« back to all changes in this revision

Viewing changes to mozilla/build/unix/build-toolchain/build-gcc.py

  • Committer: Package Import Robot
  • Author(s): Chris Coulson
  • Date: 2012-06-20 23:50:32 UTC
  • mto: This revision was merged to the branch mainline in revision 27.
  • Revision ID: package-import@ubuntu.com-20120620235032-haecscdskaopvm10
Tags: upstream-1.6~b1+build1
ImportĀ upstreamĀ versionĀ 1.6~b1+build1

Show diffs side-by-side

added added

removed removed

Lines of Context:
109
109
                          "--with-mpfr=%s" % lib_inst_dir,
110
110
                          "--with-mpc=%s" % lib_inst_dir,
111
111
                          "--enable-languages=c,c++",
 
112
                          "--disable-lto",
112
113
                          "--disable-multilib",
113
114
                          "--disable-bootstrap"]
114
115
    if is_stage_one:
154
155
 
155
156
    binutils_build_dir = stage_dir + '/binutils'
156
157
    build_package(binutils_source_dir, binutils_build_dir,
157
 
                  ["--prefix=%s" % tool_inst_dir])
 
158
                  ["--prefix=%s" % tool_inst_dir,
 
159
                   "--without-zlib"])
158
160
 
159
161
    # During stage one we have to build gcc first, this glibc doesn't even
160
162
    # build with gcc 4.6. During stage two, we have to build glibc first.
264
266
 
265
267
stage1_tool_inst_dir = stage1_dir + '/inst'
266
268
stage2_dir = build_dir + '/stage2'
267
 
build_one_stage({"CC"     : stage1_tool_inst_dir + "/bin/gcc -fgnu89-inline",
268
 
                 "CXX"    : stage1_tool_inst_dir + "/bin/g++",
269
 
                 "AR"     : stage1_tool_inst_dir + "/bin/ar",
 
269
build_one_stage({"PATH"   : stage1_tool_inst_dir + "/bin:/bin:/usr/bin",
 
270
                 "CC"     : "gcc -fgnu89-inline",
 
271
                 "CXX"    : "g++",
270
272
                 "RANLIB" : "true" },
271
273
                stage2_dir, False)
272
274