~ubuntu-branches/ubuntu/precise/eglibc/precise

« back to all changes in this revision

Viewing changes to ports/sysdeps/arm/preconfigure

  • Committer: Package Import Robot
  • Author(s): Matthias Klose
  • Date: 2011-10-04 17:48:26 UTC
  • mfrom: (216.1.23 oneiric)
  • Revision ID: package-import@ubuntu.com-20111004174826-2cyb9ewn3ucymlsx
Tags: 2.13-20ubuntu5
libc6-dev: Don't break the current {gnat,gcj}-4.4-base versons. LP: #853688.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
arm*)
3
3
        base_machine=arm
4
4
        case $config_os in
5
 
        linux-gnueabi*)
6
 
                # Lets ask the compiler which ARM family we've got
7
 
                # Unfortunately it doesn't define any flags for implementations
8
 
                # that you might pass to -mcpu or -mtune
9
 
                # Note if you add patterns here you must ensure that
10
 
                # an appropriate directory exists in sysdeps/arm/eabi
11
 
                archcppflag=`echo "" |
12
 
                $CC $CFLAGS $CPPFLAGS -E -dM - |
13
 
                  grep __ARM_ARCH |
14
 
                  sed -e 's/^#define //' -e 's/ .*//'`
15
 
 
16
 
                case x$archcppflag in
17
 
                x__ARM_ARCH_[89]*__)
18
 
                  machine=armv7
19
 
                  echo "Found compiler is configured for something newer than v7 - using v7"
20
 
                  ;;
21
 
 
22
 
                x__ARM_ARCH_7A__)
23
 
                  machine=armv7
24
 
                  echo "Found compiler is configured for $machine"
25
 
                  ;;
26
 
 
27
 
                x__ARM_ARCH_6T2__)
28
 
                  machine=armv6t2
29
 
                  echo "Found compiler is configured for $machine"
30
 
                  ;;
31
 
 
32
 
                *)
33
 
                  machine=arm
34
 
                  echo 2>&1 "arm/preconfigure: Did not find ARM architecture type; using default"
35
 
                  ;;
36
 
                esac
37
 
 
 
5
        linux-gnueabi)
38
6
                machine=arm/eabi/$machine
39
7
                if [ "${CFLAGS+set}" != "set" ]; then
40
8
                  CFLAGS="-g -O2"