Lines 240-245
Link Here
|
240 |
# Option to force building pic |
240 |
# Option to force building pic |
241 |
use pic && myconf+=( --enable-pic ) |
241 |
use pic && myconf+=( --enable-pic ) |
242 |
|
242 |
|
|
|
243 |
# Try to get cpu type based on CFLAGS. |
244 |
# Bug #172723 |
245 |
# We need to do this so that features of that CPU will be better used |
246 |
# If they contain an unknown CPU it will not hurt since ffmpeg's configure |
247 |
# will just ignore it. |
248 |
for i in $(get-flag march) $(get-flag mcpu) $(get-flag mtune) ; do |
249 |
[ "${i}" = "native" ] && i="host" # bug #273421 |
250 |
myconf="${myconf} --cpu=${i}" |
251 |
break |
252 |
done |
253 |
|
243 |
# cross compile support |
254 |
# cross compile support |
244 |
if tc-is-cross-compiler ; then |
255 |
if tc-is-cross-compiler ; then |
245 |
myconf+=( --enable-cross-compile --arch=$(tc-arch-kernel) --cross-prefix=${CHOST}- ) |
256 |
myconf+=( --enable-cross-compile --arch=$(tc-arch-kernel) --cross-prefix=${CHOST}- ) |