* configure.in (libstdcxx_flags): Use libstdc++-v3/src/INCLUDES.
[deliverable/binutils-gdb.git] / binutils / nlmconv.c
index 26602d7b6a716deb428ffecde272deac42a716c1..450ac1454b8bd8cb4810a4b324db77393ce648fa 100644 (file)
@@ -2086,9 +2086,6 @@ powerpc_mangle_relocs (outbfd, insec, relocs_ptr, reloc_count_ptr, contents,
 #define LD_NAME "ld"
 #endif
 
-/* Temporary file name base.  */
-static char *temp_filename;
-
 /* The user has specified several input files.  Invoke the linker to
    link them all together, and convert and delete the resulting output
    file.  */
@@ -2137,10 +2134,7 @@ link_inputs (inputs, ld)
   if (ld == NULL)
     ld = (char *) LD_NAME;
 
-  temp_filename = choose_temp_base ();
-
-  unlink_on_exit = xmalloc (strlen (temp_filename) + 3);
-  sprintf (unlink_on_exit, "%s.O", temp_filename);
+  unlink_on_exit = make_temp_file (".O");
 
   argv[0] = ld;
   argv[1] = (char *) "-Ur";
This page took 0.02349 seconds and 4 git commands to generate.