From d697fdb4afb08bb46027a5efd1f8040bfdb8380e Mon Sep 17 00:00:00 2001 From: Brent Cook <bcook@openbsd.org> Date: Thu, 17 Jul 2014 21:20:34 -0500 Subject: initial underpinnings for mingw/cross compilation support Use canonical host rather than target so that this works: CC=i686-w64-mingw32-gcc ./configure --host=i686-w64-mingw32 Conditionally compile Linux issetugid compatibility function ok beck@ --- crypto/Makefile.am.tpl | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'crypto') diff --git a/crypto/Makefile.am.tpl b/crypto/Makefile.am.tpl index 20c3495..d79a270 100644 --- a/crypto/Makefile.am.tpl +++ b/crypto/Makefile.am.tpl @@ -45,22 +45,27 @@ if NO_ARC4RANDOM_BUF libcompat_la_SOURCES += compat/arc4random.c if NO_GETENTROPY -if TARGET_LINUX +if HOST_LINUX libcompat_la_SOURCES += compat/getentropy_linux.c endif -if TARGET_DARWIN +if HOST_DARWIN libcompat_la_SOURCES += compat/getentropy_osx.c endif -if TARGET_SOLARIS +if HOST_SOLARIS libcompat_la_SOURCES += compat/getentropy_solaris.c endif +if HOST_WIN +libcompat_la_SOURCES += compat/getentropy_win.c +endif endif endif if NO_ISSETUGID +if HOST_LINUX libcompat_la_SOURCES += compat/issetugid_linux.c endif +endif noinst_HEADERS = des/ncbc_enc.c noinst_HEADERS += compat/thread_private.h -- cgit v1.2.3-55-g6feb