OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [libgomp/] [configure.tgt] - Blame information for rev 309

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 273 jeremybenn
# This is the target specific configuration file.  This is invoked by the
2
# autoconf generated configure script.  Putting it in a separate shell file
3
# lets us skip running autoconf when modifying target specific information.
4
 
5
# This file switches on the shell variable ${target}, and sets the
6
# following shell variables:
7
#  config_path          An ordered list of directories to search for
8
#                       sources and headers.  This is relative to the
9
#                       config subdirectory of the source tree.
10
#  XCFLAGS              Add extra compile flags to use.
11
#  XLDFLAGS             Add extra link flags to use.
12
 
13
# Optimize TLS usage by avoiding the overhead of dynamic allocation.
14
if test $gcc_cv_have_tls = yes ; then
15
  case "${target}" in
16
 
17
    *-*-linux*)
18
        XCFLAGS="${XCFLAGS} -ftls-model=initial-exec"
19
        ;;
20
  esac
21
fi
22
 
23
# Since we require POSIX threads, assume a POSIX system by default.
24
config_path="posix"
25
 
26
# Check for futex enabled all at once.
27
if test $enable_linux_futex = yes; then
28
  case "${target}" in
29
 
30
    alpha*-*-linux*)
31
        config_path="linux/alpha linux posix"
32
        ;;
33
 
34
    ia64*-*-linux*)
35
        config_path="linux/ia64 linux posix"
36
        ;;
37
 
38
    mips*-*-linux*)
39
        config_path="linux/mips linux posix"
40
        ;;
41
 
42
    powerpc*-*-linux*)
43
        config_path="linux/powerpc linux posix"
44
        ;;
45
 
46
    s390*-*-linux*)
47
        config_path="linux/s390 linux posix"
48
        ;;
49
 
50
    # Note that bare i386 is not included here.  We need cmpxchg.
51
    i[456]86-*-linux*)
52
        config_path="linux/x86 linux posix"
53
        case " ${CC} ${CFLAGS} " in
54
          *" -m64 "*)
55
            ;;
56
          *)
57
            if test -z "$with_arch"; then
58
              XCFLAGS="${XCFLAGS} -march=i486 -mtune=${target_cpu}"
59
            fi
60
        esac
61
        ;;
62
 
63
    # Similar jiggery-pokery for x86_64 multilibs, except here we
64
    # can't rely on the --with-arch configure option, since that
65
    # applies to the 64-bit side.
66
    x86_64-*-linux*)
67
        config_path="linux/x86 linux posix"
68
        case " ${CC} ${CFLAGS} " in
69
          *" -m32 "*)
70
            XCFLAGS="${XCFLAGS} -march=i486 -mtune=i686"
71
            ;;
72
        esac
73
        ;;
74
 
75
    # Note that sparcv7 and sparcv8 is not included here.  We need cas.
76
    sparcv9-*-linux* | sparc64-*-linux*)
77
        echo "int i;" > conftestx.c
78
        if ${CC} ${CFLAGS} -c -o conftestx.o conftestx.c > /dev/null 2>&1; then
79
          config_path="linux/sparc linux posix"
80
          case "`/usr/bin/file conftestx.o`" in
81
            *32-bit*)
82
              case " ${CC} ${CFLAGS}" in
83
                *" -mcpu=ultrasparc"*)
84
                  ;;
85
                *)
86
                  XCFLAGS="${XCFLAGS} -mcpu=v9"
87
                  ;;
88
              esac
89
              ;;
90
          esac
91
        fi
92
        rm -f conftestx.c conftestx.o
93
        ;;
94
  esac
95
fi
96
 
97
# Other system configury
98
case "${target}" in
99
 
100
  *-*-hpux*)
101
        case "${target}" in
102
          *-*-hpux11*)
103
             # HPUX v11.x requires -lrt to resolve sem_init in libgomp.la
104
             XLDFLAGS="${XLDFLAGS} -lrt"
105
             ;;
106
        esac
107
        case "${target}" in
108
          hppa[12]*-*-hpux*)
109
            # PA 32 HP-UX needs -frandom-seed for bootstrap compare.
110
            XCFLAGS="${XCFLAGS} -frandom-seed=fixed-seed"
111
            ;;
112
        esac
113
        ;;
114
 
115
  *-*-mingw32*)
116
        config_path="mingw32 posix"
117
        ;;
118
 
119
  *-*-solaris2.[56]*)
120
        config_path="posix95 posix"
121
        XLDFLAGS="${XLDFLAGS} -lposix4"
122
        ;;
123
 
124
  *-*-darwin*)
125
        config_path="bsd posix"
126
        ;;
127
 
128
  *)
129
        ;;
130
 
131
esac

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.