[x264-devel] [PATCH] Link to libgpac instead of libgpac_static when enable shared

Zuxy Meng zuxy.meng at gmail.com
Thu Apr 10 13:47:31 CEST 2008


Hi,

I guess it's more desirable to link to a dynamic lib when we ourselves
are building dynamic libs.

-- 
Zuxy
Beauty is truth,
While truth is beauty.
PGP KeyID: E8555ED6

===================================================
diff --git a/configure b/configure
index 19d76d4..507e339 100755
--- a/configure
+++ b/configure
@@ -372,7 +372,11 @@ if test "$pthread" = "yes" ; then
     LDFLAGS="$LDFLAGS $libpthread"
 fi

-MP4_LDFLAGS="-lgpac_static"
+if [ $shared = yes ] ; then
+    MP4_LDFLAGS="-lgpac"
+else
+    MP4_LDFLAGS="-lgpac_static"
+fi
 if [ $SYS = MINGW ]; then
     MP4_LDFLAGS="$MP4_LDFLAGS -lwinmm"
 fi


More information about the x264-devel mailing list