Browse Source

define SHA2_SMALL to remove unneeded SHA hashes

This also removes the need for __weak_alias shims
OPENBSD_5_8
Brent Cook 9 years ago
parent
commit
cc8e1790f3
3 changed files with 1 additions and 16 deletions
  1. +1
    -1
      compat/Makefile.am
  2. +0
    -1
      include/Makefile.am
  3. +0
    -14
      include/sys/cdefs.h

+ 1
- 1
compat/Makefile.am View File

@ -13,7 +13,7 @@
# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
AM_CPPFLAGS = -I$(top_srcdir)/include -I$(top_srcdir)/src
AM_CPPFLAGS = -I$(top_srcdir)/include -I$(top_srcdir)/src -DSHA2_SMALL
noinst_LTLIBRARIES = libcompat.la libcompatnoopt.la noinst_LTLIBRARIES = libcompat.la libcompatnoopt.la


+ 0
- 1
include/Makefile.am View File

@ -2,7 +2,6 @@ noinst_HEADERS =
noinst_HEADERS += signal.h noinst_HEADERS += signal.h
noinst_HEADERS += unistd.h noinst_HEADERS += unistd.h
noinst_HEADERS += machine/endian.h noinst_HEADERS += machine/endian.h
noinst_HEADERS += sys/cdefs.h
noinst_HEADERS += sys/queue.h noinst_HEADERS += sys/queue.h
noinst_HEADERS += sys/socket.h noinst_HEADERS += sys/socket.h
noinst_HEADERS += sys/types.h noinst_HEADERS += sys/types.h


+ 0
- 14
include/sys/cdefs.h View File

@ -1,14 +0,0 @@
/*
* Public domain
* sys/cdefs.h compatibility shim
*/
#include_next <sys/cdefs.h>
#ifndef __weak_alias
/*
* We do not use any of the SHA function aliases that this would provide in
* OpenNTPD
*/
#define __weak_alias(alias,sym)
#endif

Loading…
Cancel
Save