mirror of https://github.com/mpv-player/mpv
Add support for compiling with ICC 9.1. Currently needs --target=generic-linux,
since ICC does not (properly) support __attribute__((used)), even though the documentation claims otherwise. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21239 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
eee40df587
commit
3b0e10aee2
|
@ -690,7 +690,7 @@ if test "$_gcc_check" = yes ; then
|
||||||
cc_version="v. ?.??, bad"
|
cc_version="v. ?.??, bad"
|
||||||
cc_verc_fail=yes
|
cc_verc_fail=yes
|
||||||
;;
|
;;
|
||||||
8.0)
|
8.0|9.1)
|
||||||
cc_version="$cc_version, ok"
|
cc_version="$cc_version, ok"
|
||||||
cc_verc_fail=no
|
cc_verc_fail=no
|
||||||
;;
|
;;
|
||||||
|
@ -1537,13 +1537,19 @@ if test "$_profile" != "" || test "$_debug" != "" ; then
|
||||||
fi
|
fi
|
||||||
_stripbinaries=no
|
_stripbinaries=no
|
||||||
elif test -z "$CFLAGS" ; then
|
elif test -z "$CFLAGS" ; then
|
||||||
|
if test "$cc_vendor" = "intel" ; then
|
||||||
|
CFLAGS="-O2 $_march $_mcpu $_pipe -fomit-frame-pointer"
|
||||||
|
else
|
||||||
CFLAGS="-O4 $_march $_mcpu $_pipe -ffast-math -fomit-frame-pointer"
|
CFLAGS="-O4 $_march $_mcpu $_pipe -ffast-math -fomit-frame-pointer"
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
_warn_CFLAGS=yes
|
_warn_CFLAGS=yes
|
||||||
fi
|
fi
|
||||||
if test -n "$LDFLAGS" ; then
|
if test -n "$LDFLAGS" ; then
|
||||||
_ld_extra="$_ld_extra $LDFLAGS"
|
_ld_extra="$_ld_extra $LDFLAGS"
|
||||||
_warn_CFLAGS=yes
|
_warn_CFLAGS=yes
|
||||||
|
elif test "$cc_vendor" = "intel" ; then
|
||||||
|
_ld_extra="$_ld_extra -i-static"
|
||||||
fi
|
fi
|
||||||
if test -n "$CPPFLAGS" ; then
|
if test -n "$CPPFLAGS" ; then
|
||||||
_inc_extra="$_inc_extra $CPPFLAGS"
|
_inc_extra="$_inc_extra $CPPFLAGS"
|
||||||
|
|
Loading…
Reference in New Issue