[x264-devel] Add /usr/lib/{64/}values-xpg6.o to $LDFLAGS on Solaris

Sean McGovern git at videolan.org
Sat Oct 22 02:30:24 CEST 2011


x264 | branch: master | Sean McGovern <gseanmcg at gmail.com> | Mon Oct 17 12:45:15 2011 -0700| [f7e640a33fe66838ecece1da267b566342f3be24] | committer: Jason Garrett-Glaser

Add /usr/lib/{64/}values-xpg6.o to $LDFLAGS on Solaris
This is required for POSIX.1-2001 compliance.

> http://git.videolan.org/gitweb.cgi/x264.git/?a=commit;h=f7e640a33fe66838ecece1da267b566342f3be24
---

 configure |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/configure b/configure
index 2b228f2..f0e4ec9 100755
--- a/configure
+++ b/configure
@@ -474,6 +474,11 @@ case $host_os in
         SYS="SunOS"
         define HAVE_MALLOC_H
         LDFLAGS="$LDFLAGS -lm"
+        if cc_check "" /usr/lib/64/values-xpg6.o; then
+            LDFLAGS="$LDFLAGS /usr/lib/64/values-xpg6.o"
+        else
+            LDFLAGS="$LDFLAGS /usr/lib/values-xpg6.o"
+        fi
         HAVE_GETOPT_LONG=0
         ;;
     *)



More information about the x264-devel mailing list