This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Issue with Linker can't find lib's.


On Jun 25 2019, Ghalib Khan <ghalib.khan@exaleapsemi.com> wrote:

> build-glibc-linux
>  $ ./configure \
>  CC="riscv64-unknown-linux-gnu-gcc " \
>  CXX="riscv64-unknown-linux-gnu-g++ " \
>  CFLAGS=" -mcmodel=medlow -g -O2 " \
>  CXXFLAGS=" -mcmodel=medlow -g -O2 " \
>  ASFLAGS=" -mcmodel=medlow " \
>  --host=riscv64-unknown-linux-gnu \
>  --prefix=$(INSTALL_DIR) \

prefix should be /usr, ie. the host path.

>  --with-sysroot=$(INSTALL_DIR)/sysroot \
>  --disable-werror \
>  --enable-shared \
>  --enable-obsolete-rpc \
>  --with-headers=$(INSTALL_DIR)/include  \
>  --disable-multilib \
>  --enable-add-ons \
>  --enable-kernel=$(linux_version) \
>   \
>  --libdir=$(INSTALL_DIR)/sysroot/usr/lib libc_cv_slibdir=$(INSTALL_DIR)/sysroot/lib libc_cv_rtlddir=$(INSTALL_DIR)/sysroot/lib

Same here, these need to be host paths.

> build-glibc-linux-headers
>  ./configure \
>  CC="riscv64-unknown-linux-gnu-gcc " \
>  --host=riscv64-unknown-linux-gnu \
>  --prefix=$(INSTALL_DIR)/sysroot/usr  \

Likewise.

Andreas.

-- 
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]