Thread: [patch 1/7] remove unnecessary libs

[patch 1/7] remove unnecessary libs

From
Marko Kreen
Date:
The SHLIB section was copy-pasted from somewhere and contains
several unnecessary libs.  This cleans it up a bit.

 -lcrypt
   we don't use system crypt()

 -lssl, -lssleay32
   no SSL here

 -lz in win32 section
   already added on previous line

 -ldes
   The chance anybody has it is pretty low.
   And the chance pgcrypto works with it is even lower.

Also trim the win32 section.


Index: pgsql/contrib/pgcrypto/Makefile
===================================================================
*** pgsql.orig/contrib/pgcrypto/Makefile
--- pgsql/contrib/pgcrypto/Makefile
*************** endif
*** 56,72 ****
  # Add libraries that pgcrypto depends (or might depend) on into the
  # shared library link.  (The order in which you list them here doesn't
  # matter.)
! SHLIB_LINK += $(filter -lcrypt -ldes -lcrypto -lssl -lz, $(LIBS))
  ifeq ($(PORTNAME), win32)
! SHLIB_LINK += $(filter -leay32 -lssleay32 -lz, $(LIBS))
! endif
!
! # to make ws2_32.lib the last library (must occur after definition of PORTNAME)
! ifeq ($(PORTNAME),win32)
  SHLIB_LINK += -lwsock32 -lws2_32
  endif

-
  rijndael.o: rijndael.tbl

  rijndael.tbl:
--- 56,68 ----
  # Add libraries that pgcrypto depends (or might depend) on into the
  # shared library link.  (The order in which you list them here doesn't
  # matter.)
! SHLIB_LINK += $(filter -lcrypto -lz, $(LIBS))
  ifeq ($(PORTNAME), win32)
! SHLIB_LINK += $(filter -leay32, $(LIBS))
! # those must be at the end
  SHLIB_LINK += -lwsock32 -lws2_32
  endif

  rijndael.o: rijndael.tbl

  rijndael.tbl:

--