Commit ba075a94 authored by diego's avatar diego

Detect Sun Studio compiler and set appropriate variables.

Add dependency generation commands compatible with Sun Studio.
patch by Michael Kostylev, michael.kostylev gmail com


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@20397 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 96fc5660
...@@ -1594,6 +1594,11 @@ elif $cc -v 2>&1 | grep -q clang; then ...@@ -1594,6 +1594,11 @@ elif $cc -v 2>&1 | grep -q clang; then
cc_version=__VERSION__ cc_version=__VERSION__
CC_DEPFLAGS='-MMD' CC_DEPFLAGS='-MMD'
AS_DEPFLAGS='-MMD' AS_DEPFLAGS='-MMD'
elif $cc -V 2>&1 | grep -q Sun; then
cc_type=suncc
cc_version="AV_STRINGIFY(__SUNPRO_C)"
DEPEND_CMD='$(DEPCC) $(DEPFLAGS) $< | sed -e "1s,^.*: ,$@: ," -e "\$$!s,\$$, \\\\\\," -e "1!s,^.*: , ," > $(@:.o=.d)'
DEPFLAGS='$(CPPFLAGS) $(CFLAGS) -xM1'
fi fi
test -n "$cc_type" && enable $cc_type || echolog "Unknown C compiler $cc" test -n "$cc_type" && enable $cc_type || echolog "Unknown C compiler $cc"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment