openpkg/buildquick.sh

Sun, 03 Apr 2011 13:34:55 +0200

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Sun, 03 Apr 2011 13:34:55 +0200
changeset 337
f71e028eb3e2
parent 251
5e1bf50b6e48
child 345
b7180006bcf1
permissions
-rw-r--r--

Correct and improve several packaging aspects including...
Correct datadir path for python modules, correct jar(1) path for
building libgcj classes, strip libexecdir path of version numbers,
improve name of oblbld build path, clean whitespace from as(1) and
ld(1) GNU detection, remove seemingly discarded '--with-local-prefix'
configure argument, and correct hardcoded lto plugin libtool archive
dependency information.

Most importantly, correct IA32 architecture detection logic in
config.gcc to correctly emit SSE2 instructions conditionally, leading
to the removal of all '-march' bootstrap options and replacement with
unconditional (for IA32/AMD64) '-mtune=native' options. Comments and
buildtime warnings are corrected appropriately. In theory these changes
cause a more portable, orthoganal, and optimal bootstrap to be built.

     1 #! /bin/sh
     3 #
     4 # Build a new bootstrap package,
     5 # producing openpkg-<date>-<date>.src.sh
     6 #
     7 TOPDIR=opkg
     8 TOPUSE=opkg
     9 BASEID=200
    10 time ./openpkg.boot -bs --prefix=/$TOPDIR \
    11                     --tag=$TOPDIR --user=$TOPUSE --group=$TOPUSE \
    12                     --muid=${BASEID}1 --ruid=${BASEID}2 --nuid=${BASEID}3 \
    13                     --mgid=${BASEID}1 --rgid=${BASEID}2 --ngid=${BASEID}3
    14                     --use_tar=/$TOPDIR/bin/tar --use_make=/$TOPDIR/bin/make \
    15                     --use_cc=/$TOPDIR/bin/cc --use_ar=/$TOPDIR/bin/ar \
    16                     --use_ld=/$TOPDIR/bin/ld --use_as=/$TOPDIR/bin/as \
    17                     --use_strip=/$TOPDIR/bin/strip \
    18                     2>&1 | tee buildlog.txt

mercurial