diff options
-rw-r--r-- | src/util/Makefile.am | 4 | ||||
-rw-r--r-- | src/util/Makefile.sources | 6 | ||||
-rw-r--r-- | src/util/mesa-sha1.c | 4 |
3 files changed, 6 insertions, 8 deletions
diff --git a/src/util/Makefile.am b/src/util/Makefile.am index 1e087b40d38..761023d186f 100644 --- a/src/util/Makefile.am +++ b/src/util/Makefile.am @@ -44,11 +44,7 @@ libmesautil_la_SOURCES = \ $(MESA_UTIL_FILES) \ $(MESA_UTIL_GENERATED_FILES) -if ENABLE_SHADER_CACHE -libmesautil_la_SOURCES += $(MESA_UTIL_SHADER_CACHE_FILES) - libmesautil_la_LIBADD = $(SHA1_LIBS) -endif roundeven_test_LDADD = -lm diff --git a/src/util/Makefile.sources b/src/util/Makefile.sources index 82df3bcb00a..afdd0cb3b5c 100644 --- a/src/util/Makefile.sources +++ b/src/util/Makefile.sources @@ -1,7 +1,3 @@ -MESA_UTIL_SHADER_CACHE_FILES := \ - mesa-sha1.c \ - mesa-sha1.h - MESA_UTIL_FILES := \ bitset.h \ format_srgb.h \ @@ -9,6 +5,8 @@ MESA_UTIL_FILES := \ hash_table.h \ list.h \ macros.h \ + mesa-sha1.c \ + mesa-sha1.h \ ralloc.c \ ralloc.h \ register_allocate.c \ diff --git a/src/util/mesa-sha1.c b/src/util/mesa-sha1.c index fa281937774..7614b21c8ba 100644 --- a/src/util/mesa-sha1.c +++ b/src/util/mesa-sha1.c @@ -290,6 +290,8 @@ _mesa_sha1_final(struct mesa_sha1 *ctx, unsigned char result[20]) #endif +#ifdef HAVE_SHA1 + void _mesa_sha1_compute(const void *data, size_t size, unsigned char result[20]) { @@ -314,3 +316,5 @@ _mesa_sha1_format(char *buf, const unsigned char *sha1) return buf; } + +#endif |