Thanks for the answers, great to have more insight on this. Is this a bug? Shouldn't it set up the linking correctly itself when the library has been specified using `--with-ssl`, as it does for `--with-pcre`? I'm considering submitting a bug report, but only want to do so if it really is. On Tue, Jul 30, 2019 at 9:01 AM Rainer Canavan <rainer.canavan@xxxxxxxxxxxx> wrote: > > On Tue, Jul 30, 2019 at 7:15 AM Nigel B. Peck <nigelbpeck@xxxxxxxxx> wrote: > > > > Hi, > > > > Having some trouble compiling Apache with non-system OpenSSL, any help > > appreciated. Looked at many threads online but no answers so far. > [...] > > > Is there any way I can resolve this without having to add the location > > to LD_LIBRARY_PATH? > > LDFLAGS=-Wl,-rpath,/path/to/libs ./configure --prefix to set the rpath. > Depending on the platform you're on or the linker you're using, you > may have to use -R instead. > > You could also switch to cmake instead of autoconf, since cmake usually > gets the linker options right on its own, if you point it to the correct > directories. > > rainer > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx > For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx