From: Sergio Basto Date: Fri, 23 Nov 2012 02:02:50 +0000 (-0800) Subject: configure: fix gpac detection with -Wp,-D_FORTIFY_SOURCE=2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cd71765c0ba574bb573e75396ef3c6a5c4c00469;p=libx264 configure: fix gpac detection with -Wp,-D_FORTIFY_SOURCE=2 --- diff --git a/configure b/configure index 250b0ace..6b2d616c 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"