diff options
author | Peter Korsgaard <jacmet@sunsite.dk> | 2010-12-12 08:51:58 +0100 |
---|---|---|
committer | Peter Korsgaard <jacmet@sunsite.dk> | 2010-12-12 08:51:58 +0100 |
commit | cc37a07f289f56a81195933810af705d77e95ee4 (patch) | |
tree | 6e099b2aaef7cd754a8b357a2abd419c53e356ad /package | |
parent | b7a2358f0babe29219f3e2956eae53603b4a7f2c (diff) |
zlib: really fix install for static only builds
Commit ab2f5567c1 (cleanup, fix install for static only build) forgot
to add the patch for static only builds, even though the commit message
mentioned it.
Thanks to Mike for noticing.
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package')
-rw-r--r-- | package/zlib/zlib-1.2.5-fix-static-install.patch | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/package/zlib/zlib-1.2.5-fix-static-install.patch b/package/zlib/zlib-1.2.5-fix-static-install.patch new file mode 100644 index 000000000..0a885f742 --- /dev/null +++ b/package/zlib/zlib-1.2.5-fix-static-install.patch @@ -0,0 +1,24 @@ +[PATCH] fix make install for static builds + +Only try to install shared lib if we've built one. + +Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk> +--- + Makefile.in | 4 +++- + 1 file changed, 3 insertions(+), 1 deletion(-) + +Index: zlib-1.2.5/Makefile.in +=================================================================== +--- zlib-1.2.5.orig/Makefile.in ++++ zlib-1.2.5/Makefile.in +@@ -168,7 +168,9 @@ install-libs: $(LIBS) + -@if [ ! -d $(DESTDIR)$(man3dir) ]; then mkdir -p $(DESTDIR)$(man3dir); fi + -@if [ ! -d $(DESTDIR)$(pkgconfigdir) ]; then mkdir -p $(DESTDIR)$(pkgconfigdir); fi + cp $(STATICLIB) $(DESTDIR)$(libdir) +- cp $(SHAREDLIBV) $(DESTDIR)$(sharedlibdir) ++ if test "$(SHAREDLIBV)" -a -f $(SHAREDLIBV); then \ ++ cp $(SHAREDLIBV) $(DESTDIR)$(sharedlibdir); \ ++ fi + cd $(DESTDIR)$(libdir); chmod u=rw,go=r $(STATICLIB) + -@(cd $(DESTDIR)$(libdir); $(RANLIB) libz.a || true) >/dev/null 2>&1 + -@cd $(DESTDIR)$(sharedlibdir); if test "$(SHAREDLIBV)" -a -f $(SHAREDLIBV); then \ |