[x264-devel] configure: fix gpac detection with -Wp, -D_FORTIFY_SOURCE=2

Sergio Basto git at videolan.org
Wed Jan 9 19:32:22 CET 2013


x264 | branch: master | Sergio Basto <sergio at serjux.com> | Thu Nov 22 18:02:50 2012 -0800| [28ee1f47ed4366351477065a0f794f05402e69a7] | committer: Jason Garrett-Glaser

configure: fix gpac detection with -Wp,-D_FORTIFY_SOURCE=2

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

 configure |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configure b/configure
index 250b0ac..6b2d616 100755
--- a/configure
+++ b/configure
@@ -904,7 +904,7 @@ if [ "$gpac" = "auto" ] ; then
 fi
 if [ "$gpac" = "yes" ] ; then
     define HAVE_GPAC
-    if cc_check gpac/isomedia.h "-Werror $GPAC_LIBS" "gf_malloc(1); gf_free(NULL);" ; then
+    if cc_check gpac/isomedia.h "-Werror $GPAC_LIBS" "void *p; p = gf_malloc(1); gf_free(p);" ; then
         define HAVE_GF_MALLOC
     fi
     LDFLAGSCLI="$GPAC_LIBS $LDFLAGSCLI"



More information about the x264-devel mailing list