re PR bootstrap/18810 (Darwin's as unlinks /dev/null)

2005-02-15  Peter O'Gorman  <peter@pogma.com>

        PR bootstrap/18810
        * mklibgcc.in (vis_hide): Use a temporary object file, not
        -o /dev/null.

From-SVN: r95096
This commit is contained in:
Peter O'Gorman 2005-02-16 04:48:47 +00:00 committed by Andrew Pinski
parent 7e9534bc54
commit 489ce9e7ab
2 changed files with 11 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2005-02-15 Peter O'Gorman <peter@pogma.com>
PR bootstrap/18810
* mklibgcc.in (vis_hide): Use a temporary object file, not
-o /dev/null.
2005-02-15 Andy Hutchinson <HutchinsonAndy@netscape.net>
PR target/19924

View File

@ -100,11 +100,15 @@ if [ "$SHLIB_LINK" ]; then
# the command line, and a #define to prevent libgcc2.h etc from
# overriding that with #pragmas. The dance with @ is to prevent
# echo from seeing anything it might take for an option.
# echo turns the \$\$\$\$ into $$$$ and when make sees it it
# becomes $$ and the shell substitutes the pid. Makes for a
# slightly safer temp file.
echo "vis_hide := \$(strip \$(subst @,-,\\"
echo " \$(shell if echo 'void foo(void); void foo(void) {}' | \\"
echo " $gcc_compile -fvisibility=hidden -Werror \\"
echo " -c -xc - -o /dev/null 2> /dev/null; \\"
echo " -c -xc - -o vis_temp_file\$\$\$\$.o 2> /dev/null; \\"
echo " then echo @fvisibility=hidden @DHIDE_EXPORTS; \\"
echo " rm vis_temp_file\$\$\$\$.o 2> /dev/null; \\"
echo " fi)))"
echo