X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/344914c955b9df3b0ab453c2959260230544f7af..74d78766e81f8608556c0ca22a3804f4b5fd1a87:/toolchain/gcc/initial/Makefile?ds=sidebyside diff --git a/toolchain/gcc/initial/Makefile b/toolchain/gcc/initial/Makefile index 8cc6b3be1..f3f78b0b2 100644 --- a/toolchain/gcc/initial/Makefile +++ b/toolchain/gcc/initial/Makefile @@ -4,7 +4,7 @@ include ../common.mk GCC_CONFIGURE += \ --with-newlib \ - --with-sysroot=$(BUILD_DIR_TOOLCHAIN)/$(LIBC)-dev \ + --with-sysroot=$(TOOLCHAIN_DIR) \ --enable-languages=c \ --disable-shared \ --disable-threads \ @@ -23,7 +23,7 @@ define Host/Install $(if $(GCC_BUILD_TARGET_LIBGCC),install-target-libgcc) # XXX: glibc insists on linking against libgcc_eh - ( cd $(TOOLCHAIN_DIR)/usr/lib/gcc/$(REAL_GNU_TARGET_NAME)/$(PKG_VERSION) ; \ + ( cd $(TOOLCHAIN_DIR)/lib/gcc/$(REAL_GNU_TARGET_NAME)/$(PKG_VERSION) ; \ [ -e libgcc_eh.a ] || ln -sf libgcc.a libgcc_eh.a ; \ cp libgcc.a libgcc_initial.a; \ )