X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;ds=sidebyside;f=gas%2Fas.c;h=d9aa6e276f267fa992c47d3df7049143e4cda3dc;hb=4864d158b1cc96d118a3d862b966bc4590c65505;hp=45acbaa456cbaf887637bc0ac7cab0b4b9923ca3;hpb=d1ecc9e929a1d2aba8a08ee152fde27803bdf611;p=pf3gnuchains%2Fpf3gnuchains4x.git diff --git a/gas/as.c b/gas/as.c index 45acbaa456..d9aa6e276f 100644 --- a/gas/as.c +++ b/gas/as.c @@ -245,12 +245,14 @@ Options:\n\ fprintf (stream, _("\ --alternate initially turn on alternate macro syntax\n")); +#ifdef HAVE_ZLIB_H fprintf (stream, _("\ --compress-debug-sections\n\ compress DWARF debug sections using zlib\n")); fprintf (stream, _("\ --nocompress-debug-sections\n\ don't compress DWARF debug sections\n")); +#endif /* HAVE_ZLIB_H */ fprintf (stream, _("\ -D produce assembler debugging messages\n")); fprintf (stream, _("\ @@ -646,7 +648,11 @@ This program has absolutely no warranty.\n")); exit (EXIT_SUCCESS); case OPTION_COMPRESS_DEBUG: +#ifdef HAVE_ZLIB_H flag_compress_debug = 1; +#else + as_warn (_("cannot compress debug sections (zlib not installed)")); +#endif /* HAVE_ZLIB_H */ break; case OPTION_NOCOMPRESS_DEBUG: