]> granicus.if.org Git - libx264/commitdiff
configure: fix gpac detection with -Wp,-D_FORTIFY_SOURCE=2
authorSergio Basto <sergio@serjux.com>
Fri, 23 Nov 2012 02:02:50 +0000 (18:02 -0800)
committerFiona Glaser <fiona@x264.com>
Thu, 6 Dec 2012 23:52:23 +0000 (15:52 -0800)
configure

index 250b0ace70cb8760957c46220dac063942fea1d5..6b2d616c4a6bfc6239ba1686e6efe7d7bfd576da 100755 (executable)
--- 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"