diff options
author | Jim Meyering <meyering@redhat.com> | 2011-05-14 12:56:08 +0200 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2011-05-14 12:56:08 +0200 |
commit | 352a2820942a17273bc230a0658f184f4a8cddb7 (patch) | |
tree | d7acf2523b84068460edac4aeba1d76336fc482e | |
parent | 6f56d93ebed6fc549081ced140e1f463d5f45af1 (diff) | |
download | gzip-352a2820942a17273bc230a0658f184f4a8cddb7.tar.gz |
build: avoid link failure on at least i386-FreeBSD7.2
* deflate.c (match_start, prev_length, max_chain_length): Do not
declare these as static. On some types of system/arch, they are
used via match_.s.
* cfg.mk (_gl_TS_unmarked_extern_vars): Mark those three variables
as known-extern: match_start, prev_length, max_chain_length.
-rw-r--r-- | cfg.mk | 3 | ||||
-rw-r--r-- | deflate.c | 6 |
2 files changed, 5 insertions, 4 deletions
@@ -80,4 +80,5 @@ export _gl_TS_dir = . # Tell the tight_scope rule that these variables are deliberately "extern". export _gl_TS_unmarked_extern_vars = \ - block_start d_buf inbuf outbuf prev read_buf strstart window + block_start d_buf inbuf outbuf prev read_buf strstart window \ + match_start prev_length max_chain_length @@ -180,17 +180,17 @@ local unsigned ins_h; /* hash index of string to be inserted */ * H_SHIFT * MIN_MATCH >= HASH_BITS */ -static unsigned int near prev_length; + unsigned int near prev_length; /* Length of the best match at previous step. Matches not greater than this * are discarded. This is used in the lazy match evaluation. */ unsigned near strstart; /* start of string to insert */ -local unsigned near match_start; /* start of matching string */ + unsigned near match_start; /* start of matching string */ local int eofile; /* flag set at end of input file */ local unsigned lookahead; /* number of valid bytes ahead in window */ -static unsigned max_chain_length; + unsigned max_chain_length; /* To speed up deflation, hash chains are never searched beyond this length. * A higher limit improves compression ratio but degrades the speed. */ |