mirror of
https://github.com/libevent/libevent.git
synced 2025-01-31 09:12:55 +08:00
Changed OPENSSL_LDFLAGS to OPENSSL_LIBADD
This commit is contained in:
parent
9278196847
commit
2d67b63853
@ -154,7 +154,7 @@ else
|
||||
fi
|
||||
AC_SUBST(EV_LIB_WS32)
|
||||
AC_SUBST(EV_LIB_GDI)
|
||||
AC_SUBST(OPENSSL_LDFLAGS)
|
||||
AC_SUBST(OPENSSL_LIBADD)
|
||||
|
||||
AC_CHECK_HEADERS([openssl/bio.h])
|
||||
|
||||
@ -165,10 +165,10 @@ OPENSSL_LIBS=""
|
||||
have_openssl=no
|
||||
AC_SEARCH_LIBS([SSL_new], [ssl],
|
||||
[have_openssl=yes
|
||||
OPENSSL_LIBS="$LIBS -lcrypto $EV_LIB_GDI $EV_LIB_WS32 $OPENSSL_LDFLAGS"
|
||||
OPENSSL_LIBS="$LIBS -lcrypto $EV_LIB_GDI $EV_LIB_WS32 $OPENSSL_LIBADD"
|
||||
AC_DEFINE(HAVE_OPENSSL, 1, [Define if the system has openssl])],
|
||||
[have_openssl=no],
|
||||
[-lcrypto $EV_LIB_GDI $EV_LIB_WS32 $OPENSSL_LDFLAGS])
|
||||
[-lcrypto $EV_LIB_GDI $EV_LIB_WS32 $OPENSSL_LIBADD])
|
||||
LIBS="$save_LIBS"
|
||||
AC_SUBST(OPENSSL_LIBS)
|
||||
fi
|
||||
|
@ -21,7 +21,7 @@ http_server_SOURCES = http-server.c
|
||||
if OPENSSL
|
||||
noinst_PROGRAMS += le-proxy
|
||||
le_proxy_SOURCES = le-proxy.c
|
||||
le_proxy_LDADD = $(LDADD) ../libevent_openssl.la -lssl -lcrypto ${OPENSSL_LDFLAGS}
|
||||
le_proxy_LDADD = $(LDADD) ../libevent_openssl.la -lssl -lcrypto ${OPENSSL_LIBADD}
|
||||
endif
|
||||
|
||||
verify:
|
||||
|
@ -65,7 +65,7 @@ regress_LDFLAGS = $(PTHREAD_CFLAGS)
|
||||
|
||||
if OPENSSL
|
||||
regress_SOURCES += regress_ssl.c
|
||||
regress_LDADD += ../libevent_openssl.la -lssl -lcrypto ${OPENSSL_LDFLAGS}
|
||||
regress_LDADD += ../libevent_openssl.la -lssl -lcrypto ${OPENSSL_LIBADD}
|
||||
endif
|
||||
|
||||
bench_SOURCES = bench.c
|
||||
|
Loading…
x
Reference in New Issue
Block a user