Hello,

I have the libelf installed in a non-standard path, so when I build
the lto branch, I set the such env variables,

$ export CPPFLAGS="-I<path-to-libelf-headers>"  <- Only needed if
libelf is in a non-standard path
$ export LDFLAGS="-L<path-to-libelf-lib>"       <- Only needed if
libelf is in a non-standard path

But, lto-plugin is failed in stage2 with the error

/usr/bin/ld: cannot find -lelf

I look into the Makefile and find that LDFLAGS is set as BOOT_LDFLAGS
scine stage2, so I have to set this variable also.

Is it a right way that it should go?

Best wishes,

Eric Fisher

Reply via email to