Hello!
On x86_64 RHEL 7.7 with GCC 4.8.5, configuring and compiling execline
2.5.3.0 against skalibs 2.9.1.0 (which has been compiled with the
"--disable-static" configure option) with
$ ./configure --prefix=/opt/local/encap/execline-2.5.3.0 --enable-shared
--disable-static --with-sysdeps=/opt/local/lib/skalibs/sysdeps
--with-include=/opt/local/include --with-dynlib=/opt/local/lib
$ make
fails as follows:
exec gcc -o background -pipe -Wall -std=c99 -fno-exceptions -fno-unwind-tables
-fno-asynchronous-unwind-tables -Wa,--noexecstack -ffunction-sections
-fdata-sections -O2 -fomit-frame-pointer -fno-stack-protector
-Wl,--sort-section=alignment -Wl,--sort-common -Wl,--hash-style=both
-Wl,--gc-sections src/execline/background.o libexecline.a.xyzzy -lskarnet
/usr/bin/ld: cannot find -lskarnet
collect2: error: ld returned 1 exit status
make: *** [background] Error 1
If I add the "--with-lib=/opt/local/lib" configure option, it succeeds.
This is unexpected because the "./configure --help" output says:
Dependencies:
--with-sysdeps=DIRuse sysdeps in DIR [PREFIX/lib/skalibs/sysdeps]
--with-include=DIRadd DIR to the list of searched directories for
headers
--with-lib=DIRadd DIR to the list of searched directories for
static libraries
--with-dynlib=DIR add DIR to the list of searched directories for
shared libraries
Since I'm not using static libraries, I would not expect to need the
"--with-lib" configure option.
Thank you,
Lewis