diff --git a/Makefile.am b/Makefile.am index c3aba0c9..4ed82b6f 100644 --- a/Makefile.am +++ b/Makefile.am @@ -201,7 +201,7 @@ libevent_extra_la_LDFLAGS = $(GENERIC_LDFLAGS) if OPENSSL libevent_openssl_la_SOURCES = bufferevent_openssl.c -libevent_openssl_la_LIBADD = $(MAYBE_CORE) -lcrypto -lssl +libevent_openssl_la_LIBADD = $(MAYBE_CORE) -lssl -lcrypto libevent_openssl_la_LDFLAGS = $(GENERIC_LDFLAGS) endif diff --git a/libevent_openssl.pc.in b/libevent_openssl.pc.in index 0fe7cb60..9624cf24 100644 --- a/libevent_openssl.pc.in +++ b/libevent_openssl.pc.in @@ -11,6 +11,6 @@ Version: @VERSION@ Requires: libevent Conflicts: Libs: -L${libdir} -levent_openssl -Libs.private: @LIBS@ -lcrypto -lssl +Libs.private: @LIBS@ -lssl -lcrypto Cflags: -I${includedir} diff --git a/sample/Makefile.am b/sample/Makefile.am index 86f4811d..09464273 100644 --- a/sample/Makefile.am +++ b/sample/Makefile.am @@ -15,7 +15,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 -lcrypto -lssl +le_proxy_LDADD = $(LDADD) ../libevent_openssl.la -lssl -lcrypto endif verify: diff --git a/test/Makefile.am b/test/Makefile.am index 64bca720..cf5431ae 100644 --- a/test/Makefile.am +++ b/test/Makefile.am @@ -60,7 +60,7 @@ regress_LDFLAGS = $(PTHREAD_CFLAGS) if OPENSSL regress_SOURCES += regress_ssl.c -regress_LDADD += ../libevent_openssl.la -lcrypto -lssl +regress_LDADD += ../libevent_openssl.la -lssl -lcrypto endif bench_SOURCES = bench.c