summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--core/zlib/gen.rc6
1 files changed, 4 insertions, 2 deletions
diff --git a/core/zlib/gen.rc b/core/zlib/gen.rc
index c52c1a32..e2035c1b 100644
--- a/core/zlib/gen.rc
+++ b/core/zlib/gen.rc
@@ -21,5 +21,7 @@ static_lib libz.a\
gzread.c\
gzwrite.c
-build '$outdir'/include/zlib.h copy '$srcdir'/zlib.h
-phony headers include/zlib.h
+# Only expose the headers needed to build with zlib.
+hdrs=(zlib.h zconf.h)
+for(hdr in $hdrs) build '$outdir'/include/$hdr copy '$srcdir'/$hdr
+phony headers include/$hdrs