~ubuntu-branches/ubuntu/wily/ghdl/wily

« back to all changes in this revision

Viewing changes to gcc/gcc/genmultilib

  • Committer: Package Import Robot
  • Author(s): Matthias Klose
  • Date: 2011-09-30 09:16:02 UTC
  • Revision ID: package-import@ubuntu.com-20110930091602-usdap7ajgizmpvb1
Tags: 0.29+gcc4.3.4+dfsg-1ubuntu1
* Fix FTBFS on multiarch systems. LP: #770812.
* Don't build the package twice.

Show diffs side-by-side

added added

removed removed

Lines of Context:
73
73
# the os directory names are used exclusively.  Use the mapping when
74
74
# there is no one-to-one equivalence between GCC levels and the OS.
75
75
 
 
76
# The optional eight argument is the multiarch name.
 
77
 
76
78
# The last option should be "yes" if multilibs are enabled.  If it is not
77
79
# "yes", all GCC multilib dir names will be ".".
78
80
 
121
123
extra=$5
122
124
exclusions=$6
123
125
osdirnames=$7
124
 
enable_multilib=$8
 
126
multiarch=$8
 
127
enable_multilib=$9
125
128
 
126
129
echo "static const char *const multilib_raw[] = {"
127
130
 
222
225
# names.
223
226
toosdirnames=
224
227
defaultosdirname=
 
228
if [ -n "${multiarch}" ]; then
 
229
  defaultosdirname=:.:${multiarch}
 
230
fi
225
231
if [ -n "${osdirnames}" ]; then
226
232
  set x ${osdirnames}
227
233
  shift
229
235
    case "$1" in
230
236
      .=*)
231
237
        defaultosdirname=`echo $1 | sed 's|^.=|:|'`
 
238
        if [ -n "${multiarch}" ]; then
 
239
          defaultosdirname=${defaultosdirname}:${multiarch}
 
240
        fi
232
241
        shift
233
242
        ;;
234
243
      *=*)
314
323
    dirout=`echo ${combo} | sed -e 's/=/-/g'`
315
324
  fi
316
325
  # Remove the leading and trailing slashes.
317
 
  dirout=`echo ${dirout} | sed -e 's|^/||' -e 's|/$||g'`
 
326
  dirout=`echo ${dirout} | sed -e 's|^/||' -e 's|/*:/*|:|' -e 's|/$||g'`
318
327
 
319
328
  # Use the OS directory names rather than the option names.
320
329
  if [ -n "${toosdirnames}" ]; then
321
330
    osdirout=`echo ${combo} | sed ${toosdirnames}`
322
331
    # Remove the leading and trailing slashes.
323
 
    osdirout=`echo ${osdirout} | sed -e 's|^/||' -e 's|/$||g'`
 
332
    osdirout=`echo ${osdirout} | sed -e 's|^/||' -e 's|/*:/*|:|' -e 's|/$||g'`
324
333
    if [ "x${enable_multilib}" != xyes ]; then
325
334
      dirout=".:${osdirout}"
326
335
      disable_multilib=yes