~ubuntu-branches/ubuntu/trusty/gst-plugins-base1.0/trusty

« back to all changes in this revision

Viewing changes to compile

  • Committer: Package Import Robot
  • Author(s): Iain Lane
  • Date: 2013-11-15 10:13:40 UTC
  • mfrom: (1.1.19) (21.1.1 trusty-proposed)
  • Revision ID: package-import@ubuntu.com-20131115101340-1svovntvcbntyntt
Tags: 1.2.1-2ubuntu1
* Merge from Debian unstable.  Remaining changes:
  + debian/patches/aarch64_fail_neon_check.patch: Disable NEON
    on arm64, as the assembly is ARMv7-specific.
* Fix "Description: Description:" in control. Thanks, lintian.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#! /bin/sh
2
2
# Wrapper for compilers which do not understand '-c -o'.
3
3
 
4
 
scriptversion=2012-01-04.17; # UTC
 
4
scriptversion=2012-10-14.11; # UTC
5
5
 
6
 
# Copyright (C) 1999, 2000, 2003, 2004, 2005, 2009, 2010, 2012 Free
7
 
# Software Foundation, Inc.
 
6
# Copyright (C) 1999-2013 Free Software Foundation, Inc.
8
7
# Written by Tom Tromey <tromey@cygnus.com>.
9
8
#
10
9
# This program is free software; you can redistribute it and/or modify
79
78
  esac
80
79
}
81
80
 
 
81
# func_cl_dashL linkdir
 
82
# Make cl look for libraries in LINKDIR
 
83
func_cl_dashL ()
 
84
{
 
85
  func_file_conv "$1"
 
86
  if test -z "$lib_path"; then
 
87
    lib_path=$file
 
88
  else
 
89
    lib_path="$lib_path;$file"
 
90
  fi
 
91
  linker_opts="$linker_opts -LIBPATH:$file"
 
92
}
 
93
 
 
94
# func_cl_dashl library
 
95
# Do a library search-path lookup for cl
 
96
func_cl_dashl ()
 
97
{
 
98
  lib=$1
 
99
  found=no
 
100
  save_IFS=$IFS
 
101
  IFS=';'
 
102
  for dir in $lib_path $LIB
 
103
  do
 
104
    IFS=$save_IFS
 
105
    if $shared && test -f "$dir/$lib.dll.lib"; then
 
106
      found=yes
 
107
      lib=$dir/$lib.dll.lib
 
108
      break
 
109
    fi
 
110
    if test -f "$dir/$lib.lib"; then
 
111
      found=yes
 
112
      lib=$dir/$lib.lib
 
113
      break
 
114
    fi
 
115
    if test -f "$dir/lib$lib.a"; then
 
116
      found=yes
 
117
      lib=$dir/lib$lib.a
 
118
      break
 
119
    fi
 
120
  done
 
121
  IFS=$save_IFS
 
122
 
 
123
  if test "$found" != yes; then
 
124
    lib=$lib.lib
 
125
  fi
 
126
}
 
127
 
82
128
# func_cl_wrapper cl arg...
83
129
# Adjust compile command to suit cl
84
130
func_cl_wrapper ()
109
155
              ;;
110
156
          esac
111
157
          ;;
 
158
        -I)
 
159
          eat=1
 
160
          func_file_conv "$2" mingw
 
161
          set x "$@" -I"$file"
 
162
          shift
 
163
          ;;
112
164
        -I*)
113
165
          func_file_conv "${1#-I}" mingw
114
166
          set x "$@" -I"$file"
115
167
          shift
116
168
          ;;
 
169
        -l)
 
170
          eat=1
 
171
          func_cl_dashl "$2"
 
172
          set x "$@" "$lib"
 
173
          shift
 
174
          ;;
117
175
        -l*)
118
 
          lib=${1#-l}
119
 
          found=no
120
 
          save_IFS=$IFS
121
 
          IFS=';'
122
 
          for dir in $lib_path $LIB
123
 
          do
124
 
            IFS=$save_IFS
125
 
            if $shared && test -f "$dir/$lib.dll.lib"; then
126
 
              found=yes
127
 
              set x "$@" "$dir/$lib.dll.lib"
128
 
              break
129
 
            fi
130
 
            if test -f "$dir/$lib.lib"; then
131
 
              found=yes
132
 
              set x "$@" "$dir/$lib.lib"
133
 
              break
134
 
            fi
135
 
          done
136
 
          IFS=$save_IFS
137
 
 
138
 
          test "$found" != yes && set x "$@" "$lib.lib"
 
176
          func_cl_dashl "${1#-l}"
 
177
          set x "$@" "$lib"
139
178
          shift
140
179
          ;;
 
180
        -L)
 
181
          eat=1
 
182
          func_cl_dashL "$2"
 
183
          ;;
141
184
        -L*)
142
 
          func_file_conv "${1#-L}"
143
 
          if test -z "$lib_path"; then
144
 
            lib_path=$file
145
 
          else
146
 
            lib_path="$lib_path;$file"
147
 
          fi
148
 
          linker_opts="$linker_opts -LIBPATH:$file"
 
185
          func_cl_dashL "${1#-L}"
149
186
          ;;
150
187
        -static)
151
188
          shared=false