mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-08-01 15:37:44 +00:00
- make sure that the target's usr/include dir exists when installing the headers
It would make sense to provide a $(PREREQ_TARGETDIR_USR_INCLUDE) prerequisite that expands to $(TARGET_DIR)/usr/include if installing any headers was requested to fix this in a generic manner..
This commit is contained in:
parent
378a02b366
commit
f393387661
@ -57,7 +57,9 @@ $(STAGING_DIR)/usr/lib/libelf.a $(STAGING_DIR)/usr/lib/libelf.so.$(LIBELF_VERSIO
|
|||||||
|
|
||||||
ifeq ($(BR2_PACKAGE_LIBELF_HEADERS),y)
|
ifeq ($(BR2_PACKAGE_LIBELF_HEADERS),y)
|
||||||
$(TARGET_DIR)/usr/lib/libelf.so.$(LIBELF_VERSION): $(STAGING_DIR)/usr/lib/libelf.a
|
$(TARGET_DIR)/usr/lib/libelf.so.$(LIBELF_VERSION): $(STAGING_DIR)/usr/lib/libelf.a
|
||||||
$(INSTALL) $(STAGING_DIR)/usr/lib/libelf* $(@D)
|
mkdir -p $(@D)
|
||||||
|
cp -dpf $(STAGING_DIR)/usr/lib/libelf* $(@D)
|
||||||
|
mkdir -p $(TARGET_DIR)/usr/include
|
||||||
cp -dpR $(STAGING_DIR)/usr/include/{gelf.h,libelf*} $(TARGET_DIR)/usr/include/
|
cp -dpR $(STAGING_DIR)/usr/include/{gelf.h,libelf*} $(TARGET_DIR)/usr/include/
|
||||||
$(STRIPCMD) $(STRIP_STRIP_UNNEEDED) $@
|
$(STRIPCMD) $(STRIP_STRIP_UNNEEDED) $@
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user