[Buildroot] [PATCH] Create zlib installation directory in the staging dir

Thiago A. Corrêa thiago.correa at gmail.com
Fri Oct 31 12:44:20 UTC 2008


On Fri, Oct 31, 2008 at 10:15 AM, Bernhard Reutner-Fischer
<rep.dot.nop at gmail.com> wrote:
> On Fri, Oct 31, 2008 at 10:11:04AM -0200, Thiago A. Corrêa wrote:
>>Applied in r23879.
>
> You applied something different, fwiw. But it doesn't matter much,
> you're building zlib incorrectly anyway *shrug* i've fixed this now..
>

Diff between svn and git gives me:

-$(TARGET_DIR)/usr/lib/libz.a: $(STAGING_DIR)/usr/lib/libz.so
-       $(INSTALL) -D $(STAGING_DIR)/usr/include/zlib.h
$(TARGET_DIR)/usr/include/
-       $(INSTALL) $(STAGING_DIR)/usr/include/zconf.h $(TARGET_DIR)/usr/include/
-       $(INSTALL) -D $(STAGING_DIR)/usr/lib/libz.a $(TARGET_DIR)/usr/lib/
+$(TARGET_DIR)/usr/lib/libz.a: $(STAGING_DIR)/usr/lib/libz.so.$(ZLIB_VERSION)
+       mkdir -p $(TARGET_DIR)/usr/include $(TARGET_DIR)/usr/lib
+       cp -dpf $(STAGING_DIR)/usr/include/zlib.h $(TARGET_DIR)/usr/include/
+       cp -dpf $(STAGING_DIR)/usr/include/zconf.h $(TARGET_DIR)/usr/include/
+       cp -dpf $(STAGING_DIR)/usr/lib/libz.a $(TARGET_DIR)/usr/lib/
+       rm -f $(TARGET_DIR)/lib/libz.so $(TARGET_DIR)/usr/lib/libz.so
+       ln -sf libz.so.$(ZLIB_VERSION) $(TARGET_DIR)/usr/lib/libz.so
        touch -c $@

Why not use $(INSTALL) here? That's what I did in addition to that
point where you and Thomas pointed out.



More information about the buildroot mailing list