[FFmpeg-devel] [PATCH 2/4] Use -G option instead of -shared for Sun Studio compiler.
Diego 'Flameeyes' Pettenò
flameeyes
Thu Oct 2 18:54:56 CEST 2008
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
;;
esac
+if $cc -V 2>&1 | grep -q Sun; then
+ SHFLAGS=$(echo "$SHFLAGS" | sed -e 's:-shared:-G:')
+fi
+
set_default $PATHS_LIST
add_extralibs $osextralibs
More information about the ffmpeg-devel
mailing list