Fwd: [PATCH] Make configure test for LD_NO_UNDEFINED_FLAG on Solaris work w/autoconf 2.69

Alan Coopersmith alan.coopersmith at oracle.com
Sat Sep 12 09:40:18 PDT 2015


Anyone want to review this 4 month old patch?

	-alan-


-------- Forwarded Message --------
Subject: [PATCH] Make configure test for LD_NO_UNDEFINED_FLAG on Solaris work 
w/autoconf 2.69
Date: Fri, 15 May 2015 21:27:26 -0700
From: Alan Coopersmith <alan.coopersmith at oracle.com>
To: xorg-devel at lists.x.org

After upgrading from autoconf 2.68 to 2.69, this test started failing with
"conftest.c", line 149: undefined symbol: NULL
so use a raw 0 pointer to avoid header dependencies in the autoconf
generated test case.

Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
---
  configure.ac |    2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index f760730..4fce5b7 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1740,7 +1740,7 @@ case "$host_os" in
  #		 XORG_DRIVER_LIBS="-Wl,-z,defs -Wl,-z,parent=${bindir}/Xorg"
           ],[],
  		[AC_LANG_SOURCE([extern int main(int argc, char **argv);
-			int call_main(void) { return main(0, NULL); }])])
+			int call_main(void) { return main(0, (void *)0); }])])
  	     rm -f conftest.parent
  	    ])
  	;;
-- 
1.7.9.2

_______________________________________________
xorg-devel at lists.x.org: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel



More information about the xorg-devel mailing list