a12689851 / slowhttptest

Automatically exported from code.google.com/p/slowhttptest
Apache License 2.0
0 stars 0 forks source link

Can't Link with libssl.so not in default directory or /usr/local/lib #17

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
It is not possible to build slowhttptest if libssl.so is not in the default 
library search path or /usr/local/bin. ./configure works as intended when 
started with CPPFLAGS and LDFLAGS, e.g. 

LDFLAGS=-Wl,-rpath,/home/foo/buildlib\ -L/home/foo/build//lib 
CPPFLAGS=-I/home/foo/build/include ./configure --prefix=/home/foo/slowhttptest/

and the build proceeds until linking finally fails. It turns out that 
src/Makefile.am explicitly removes CFLAGS and LDFLAGS. Instead of

CFLAGS=-Wall -I/usr/local/include
LDFLAGS=-L/usr/local/lib -lssl

it should probably set

CFLAGS=@CFLAGS@
CFLAGS+=-Wall -I/usr/local/include
LDFLAGS=@LDFLAGS@
LDFLAGS+=-L/usr/local/lib -lssl

or 

CFLAGS=@CFLAGS@ -Wall -I/usr/local/include
LDFLAGS=@LDFLAGS@ -L/usr/local/lib -lssl

Original issue reported on code.google.com by goo...@7val.com on 26 Jul 2013 at 2:02

GoogleCodeExporter commented 9 years ago
Thanks. Didn't see the bug report! Added.

Original comment by shek...@gmail.com on 3 Nov 2013 at 8:16

GoogleCodeExporter commented 9 years ago

Original comment by shek...@gmail.com on 3 Nov 2013 at 8:17