clfs-1.2
clfs-2.1
clfs-3.0.0-systemd
clfs-3.0.0-sysvinit
systemd
sysvinit
Last change
on this file since 1c9c5c3 was 1c9c5c3, checked in by Jim Gifford <clfs@…>, 19 years ago |
r624@server (orig r622): jim | 2005-10-31 12:40:28 -0800
Rearranging Archive
|
-
Property mode
set to
100755
|
File size:
2.1 KB
|
Rev | Line | |
---|
[617118d] | 1 | #!/bin/sh
|
---|
| 2 |
|
---|
| 3 | setup_biarch() {
|
---|
| 4 |
|
---|
| 5 | libdir=lib
|
---|
| 6 | # This to be set in the calling script if building libs into */lib64
|
---|
| 7 | if [ "Y" = "${LIB64}" ]; then
|
---|
| 8 | # Are we building 64bit userspace and bi-arch?
|
---|
| 9 | # If so we want to install our libs into */lib64
|
---|
| 10 | LOG=`echo $LOG | sed 's@\.log@-64&'`
|
---|
| 11 | libdir=lib64
|
---|
| 12 | extra_conf=" --libdir=/usr/lib64"
|
---|
| 13 | fi
|
---|
| 14 |
|
---|
| 15 | if [ "Y" = "${BIARCH}" ]; then
|
---|
| 16 | vendor_os=`echo ${TARGET} | sed 's@\([^-]*\)-\(.*\)@\2@'`
|
---|
| 17 | if [ "Y" = "${LIB64}" ]; then
|
---|
| 18 | # set arch specific 64 bit compilation flags
|
---|
| 19 | case ${TGT_ARCH} in
|
---|
| 20 | x86_64 )
|
---|
| 21 | export BUILDENV=64
|
---|
| 22 | ARCH_CFLAGS="-m${BUILDENV}"
|
---|
| 23 | unset ALT_TGT
|
---|
| 24 | ;;
|
---|
| 25 | sparc* )
|
---|
| 26 | export BUILDENV=64
|
---|
| 27 | ARCH_CFLAGS="-m${BUILDENV}"
|
---|
| 28 | unset ALT_TGT
|
---|
| 29 | ;;
|
---|
| 30 | powerpc* | ppc* )
|
---|
| 31 | export BUILDENV=64
|
---|
| 32 | ARCH_CFLAGS="-m${BUILDENV}"
|
---|
| 33 | unset ALT_TGT
|
---|
| 34 | ;;
|
---|
| 35 | s390* )
|
---|
| 36 | export BUILDENV=64
|
---|
| 37 | ARCH_CFLAGS="-m${BUILDENV}"
|
---|
| 38 | unset ALT_TGT
|
---|
| 39 | ;;
|
---|
| 40 | esac
|
---|
| 41 | else
|
---|
| 42 | # If not LIB64 we are building 32 (or 31) bit
|
---|
| 43 | case ${TGT_ARCH} in
|
---|
| 44 | x86_64 | x86-64 )
|
---|
| 45 | export BUILDENV=32
|
---|
| 46 | ARCH_CFLAGS="-m${BUILDENV}"
|
---|
| 47 | export ALT_TGT="i686-${vender_os}"
|
---|
| 48 | ;;
|
---|
| 49 | sparc* )
|
---|
| 50 | export BUILDENV=32
|
---|
| 51 | ARCH_CFLAGS="-m${BUILDENV}"
|
---|
| 52 | export ALT_TGT="sparcv9-${vender_os}"
|
---|
| 53 | ;;
|
---|
| 54 | powerpc* | ppc* )
|
---|
| 55 | export BUILDENV=32
|
---|
| 56 | ARCH_CFLAGS="-m${BUILDENV}"
|
---|
| 57 | export ALT_TGT="ppc-${vender_os}"
|
---|
| 58 | ;;
|
---|
| 59 | s390* )
|
---|
| 60 | export BUILDENV=31
|
---|
| 61 | ARCH_CFLAGS="-m${BUILDENV}"
|
---|
| 62 | export ALT_TGT="s390-${vender_os}"
|
---|
| 63 | ;;
|
---|
| 64 | esac
|
---|
| 65 | fi
|
---|
| 66 |
|
---|
| 67 | suffix="-${BUILDENV}"
|
---|
| 68 | fi
|
---|
| 69 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.