Lines 137-144
src_compile() {
Link Here
|
137 |
# If they contain an unknown CPU it will not hurt since ffmpeg's configure |
137 |
# If they contain an unknown CPU it will not hurt since ffmpeg's configure |
138 |
# will just ignore it. |
138 |
# will just ignore it. |
139 |
for i in $(get-flag march) $(get-flag mcpu) $(get-flag mtune) ; do |
139 |
for i in $(get-flag march) $(get-flag mcpu) $(get-flag mtune) ; do |
140 |
myconf="${myconf} --cpu=$i" |
140 |
if [[ "$i" == "native" ]]; then |
141 |
break |
141 |
i=`echo "int main() {return 0;}" | gcc ${CFLAGS} -x c -S -Q -v - 2>&1 | egrep -m 1 -o "\-march=.*" | cut -f 1 -d \ | cut -f 2 -d \=` |
|
|
142 |
fi |
143 |
if [[ "$i" != "" ]]; then |
144 |
myconf="${myconf} --cpu=$i" |
145 |
break |
146 |
fi |
142 |
done |
147 |
done |
143 |
|
148 |
|
144 |
# video hooking support. replaced by libavfilter, probably needs to be |
149 |
# video hooking support. replaced by libavfilter, probably needs to be |