subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From phi...@apache.org
Subject svn commit: r1573106 - /subversion/trunk/build/ac-macros/compiler.m4
Date Fri, 28 Feb 2014 22:57:24 GMT
Author: philip
Date: Fri Feb 28 22:57:24 2014
New Revision: 1573106

URL: http://svn.apache.org/r1573106
Log:
* build/ac-macros/compiler.m4
  (_SVN_XXFLAGS_ADD_IFELSE): Compile and link to test flag.

Modified:
    subversion/trunk/build/ac-macros/compiler.m4

Modified: subversion/trunk/build/ac-macros/compiler.m4
URL: http://svn.apache.org/viewvc/subversion/trunk/build/ac-macros/compiler.m4?rev=1573106&r1=1573105&r2=1573106&view=diff
==============================================================================
--- subversion/trunk/build/ac-macros/compiler.m4 (original)
+++ subversion/trunk/build/ac-macros/compiler.m4 Fri Feb 28 22:57:24 2014
@@ -35,7 +35,10 @@ AC_DEFUN([_SVN_XXFLAGS_ADD_IFELSE],
   AC_LANG_PUSH([$1])
   AC_MSG_CHECKING([if [$][$2] accepts $4])
   [$3]="$4 [$][$3]"
-  AC_COMPILE_IFELSE([AC_LANG_SOURCE([[]])],[
+  dnl Compiling is not enough: Solaris cc accepts invalid options at
+  dnl compile-time and just warns, assuming they are for the linker,
+  dnl but they cause errors at link-time.
+  AC_LINK_IFELSE([AC_LANG_SOURCE([[int main(){return 0;}]])],[
     AC_MSG_RESULT([yes])
     $5
   ],[



Mime
View raw message