Browse Source

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

Waldemar Brodkorb 8 years ago
parent
commit
ad5806bab1
1 changed files with 2 additions and 2 deletions
  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