0

There are two versions of the GLIBC library on my system:

  1. standard /usr/lib/...
  2. custom $HOME/usr/lib/...

When I compile any utility from sources using commands:

./configure --prefix=$HOME/usr
make
make install

it is linked with custom libraries placed in $HOME/usr/lib.

Is there a way to link it with standard GLIBC placed in /usr/lib/ but configured for installation into $HOME/usr?

ks1322
  • 33,961
  • 14
  • 109
  • 164
R0bur
  • 315
  • 2
  • 6

1 Answers1

0

The solution is for me:

./configure --prefix=$HOME/usr LDFLAGS='-Wl,-rpath,/lib:/usr/lib'

Thank's for this thread: How to specify RPATH in a makefile?

R0bur
  • 315
  • 2
  • 6