[FFmpeg-devel] [PATCH 2/4] Use -G option instead of -shared for Sun Studio compiler.
Fri Oct 3 00:54:13 CEST 2008
Diego 'Flameeyes' Petten? <flameeyes at gmail.com> writes:
> At least Sun Studio 11 under Linux does not seem to accept the -shared
> options for building shared libraries; since -shared is for Sun Studio
> a GCC compatibility flag, replace it with the surely-supported -G
> option when it's identified.
> configure | 4 ++++
> 1 files changed, 4 insertions(+), 0 deletions(-)
> diff --git a/configure b/configure
> index 989354b..be34ada 100755
> --- a/configure
> +++ b/configure
> @@ -1391,6 +1391,10 @@ case $target_os in
> +if $cc -V 2>&1 | grep -q Sun; then
You have tests similar to this in several of your patches. Please
combine *all* compiler-specific stuff in one place.
> + SHFLAGS=$(echo "$SHFLAGS" | sed -e 's:-shared:-G:')
This is ugly.
mans at mansr.com
More information about the ffmpeg-devel