diff mbox

[PTX] unbreak libgfortran

Message ID 61fee4a4-5e39-7ce9-4f74-ad35163bebeb@acm.org
State New
Headers show

Commit Message

Nathan Sidwell Aug. 29, 2016, 7:13 p.m. UTC
Libgfortran's configure tests cause it to think localtime_r doesn't exist, and 
then the build dies with an extern decl/static defn mismatch.

This hardwires the expected newlib reoutines, in the same manner as mips doesn.

nathan
diff mbox

Patch

2016-08-29  Nathan Sidwell  <nathan@acm.org>

	* configure.ac (nvptx-*): Hardwire newlib.
	* configure: Rebuilt.

Index: configure.ac
===================================================================
--- configure.ac	(revision 239820)
+++ configure.ac	(working copy)
@@ -276,6 +276,8 @@  AC_CHECK_MEMBERS([struct stat.st_blksize
 case "${host}--x${with_newlib}" in
   mips*--xyes)
     hardwire_newlib=1;;
+  nvptx*--xyes)
+    hardwire_newlib=1;;
 esac
 
 # Check for library functions.
Index: configure
===================================================================
--- configure	(revision 239820)
+++ configure	(working copy)
@@ -10308,7 +10308,7 @@  _LT_EOF
 	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
 	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
 	else
-	  export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
+	  export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
 	fi
 	aix_use_runtimelinking=no
 
@@ -14157,7 +14157,7 @@  _LT_EOF
 	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
 	  export_symbols_cmds_FC='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
 	else
-	  export_symbols_cmds_FC='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
+	  export_symbols_cmds_FC='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
 	fi
 	aix_use_runtimelinking=no
 
@@ -16471,6 +16471,8 @@  fi
 case "${host}--x${with_newlib}" in
   mips*--xyes)
     hardwire_newlib=1;;
+  nvptx*--xyes)
+    hardwire_newlib=1;;
 esac
 
 # Check for library functions.