Browse Source

libelf provides a pkgconfig file, which should not be using double prefix, fixes glib host compile

Waldemar Brodkorb 8 năm trước cách đây
mục cha
commit
ad5806bab1
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      toolchain/libelf/Makefile

+ 2 - 2
toolchain/libelf/Makefile

@@ -13,7 +13,7 @@ endif
 $(WRKBUILD)/.configured:
 	(cd $(WRKBUILD); \
 		$(WRKBUILD)/configure \
-		--prefix=$(STAGING_HOST_DIR)/usr \
+		--prefix=/usr \
 		--disable-nls \
 		--disable-compat \
 		--disable-shared \
@@ -26,7 +26,7 @@ $(WRKBUILD)/.compiled: $(WRKBUILD)/.configured
 	touch $@
 
 $(WRKBUILD)/.installed: $(WRKBUILD)/.compiled
-	$(MAKE) -C $(WRKBUILD) install
+	$(MAKE) instroot=$(STAGING_HOST_DIR) -C $(WRKBUILD) install
 	touch $@
 
 include ${ADK_TOPDIR}/mk/toolchain.mk