[patch 1/7] remove unnecessary libs - Mailing list pgsql-patches

From Marko Kreen
Subject [patch 1/7] remove unnecessary libs
Date
Msg-id 20050801211513.091931000@grue
Whole thread Raw
List pgsql-patches
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:

--

pgsql-patches by date:

Previous
From: Marko Kreen
Date:
Subject: [patch 3/7] Elgamal speedup
Next
From: Marko Kreen
Date:
Subject: [patch 5/7] support for RSA, pubkey reorg