0003-link-with-lcrypto.patch 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. From d80bd792323dbd56269309f85b4506eb6b1b60e9 Mon Sep 17 00:00:00 2001
  2. From: Andrei Gherzan <andrei@gherzan.ro>
  3. Date: Tue, 15 Aug 2017 15:05:47 +0800
  4. Subject: [PATCH 03/11] link with lcrypto
  5. From 4.2.0 final release, -lcrypto check was removed and we compile
  6. static libraries
  7. from bind that are linked to libcrypto. This is why i added a patch in
  8. order to add
  9. -lcrypto to LIBS.
  10. Upstream-Status: Pending
  11. Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
  12. Rebase to 4.3.6
  13. Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
  14. ---
  15. configure.ac | 4 ++++
  16. 1 file changed, 4 insertions(+)
  17. Index: dhcp-4.4.3/configure.ac
  18. ===================================================================
  19. --- dhcp-4.4.3.orig/configure.ac
  20. +++ dhcp-4.4.3/configure.ac
  21. @@ -603,6 +603,10 @@ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]],
  22. # Look for optional headers.
  23. AC_CHECK_HEADERS(sys/socket.h net/if_dl.h net/if6.h regex.h)
  24. +# find an MD5 library
  25. +AC_SEARCH_LIBS(MD5_Init, [crypto])
  26. +AC_SEARCH_LIBS(MD5Init, [crypto])
  27. +
  28. # Solaris needs some libraries for functions
  29. AC_SEARCH_LIBS(socket, [socket])
  30. AC_SEARCH_LIBS(inet_ntoa, [nsl])