Don't set BFD_DECOMPRESS when building against older binutils
authorMartin Willi <martin@revosec.ch>
Fri, 13 Jul 2012 11:42:31 +0000 (13:42 +0200)
committerMartin Willi <martin@revosec.ch>
Fri, 13 Jul 2012 11:42:31 +0000 (13:42 +0200)
src/libstrongswan/utils/backtrace.c

index b417129..04b50d5 100644 (file)
@@ -217,7 +217,9 @@ static bfd_entry_t *get_bfd_entry(char *filename)
                free(entry);
                return NULL;
        }
+#ifdef BFD_DECOMPRESS
        entry->abfd->flags |= BFD_DECOMPRESS;
+#endif
        if (bfd_check_format(entry->abfd, bfd_archive) == 0 &&
                bfd_check_format_matches(entry->abfd, bfd_object, NULL))
        {