aboutsummaryrefslogtreecommitdiff
path: root/crypto
diff options
context:
space:
mode:
authorBrent Cook <bcook@openbsd.org>2014-07-17 21:20:34 -0500
committerBrent Cook <bcook@openbsd.org>2014-07-18 09:19:17 -0500
commitd697fdb4afb08bb46027a5efd1f8040bfdb8380e (patch)
tree9308884ee7206da1acb2a534e26c10f3ef308edd /crypto
parent0bc4bdde5f8140b23af15482000d733dfe700968 (diff)
downloadportable-d697fdb4afb08bb46027a5efd1f8040bfdb8380e.tar.gz
portable-d697fdb4afb08bb46027a5efd1f8040bfdb8380e.tar.bz2
portable-d697fdb4afb08bb46027a5efd1f8040bfdb8380e.zip
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@
Diffstat (limited to 'crypto')
-rw-r--r--crypto/Makefile.am.tpl11
1 files changed, 8 insertions, 3 deletions
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
45libcompat_la_SOURCES += compat/arc4random.c 45libcompat_la_SOURCES += compat/arc4random.c
46 46
47if NO_GETENTROPY 47if NO_GETENTROPY
48if TARGET_LINUX 48if HOST_LINUX
49libcompat_la_SOURCES += compat/getentropy_linux.c 49libcompat_la_SOURCES += compat/getentropy_linux.c
50endif 50endif
51if TARGET_DARWIN 51if HOST_DARWIN
52libcompat_la_SOURCES += compat/getentropy_osx.c 52libcompat_la_SOURCES += compat/getentropy_osx.c
53endif 53endif
54if TARGET_SOLARIS 54if HOST_SOLARIS
55libcompat_la_SOURCES += compat/getentropy_solaris.c 55libcompat_la_SOURCES += compat/getentropy_solaris.c
56endif 56endif
57if HOST_WIN
58libcompat_la_SOURCES += compat/getentropy_win.c
59endif
57endif 60endif
58 61
59endif 62endif
60 63
61if NO_ISSETUGID 64if NO_ISSETUGID
65if HOST_LINUX
62libcompat_la_SOURCES += compat/issetugid_linux.c 66libcompat_la_SOURCES += compat/issetugid_linux.c
63endif 67endif
68endif
64 69
65noinst_HEADERS = des/ncbc_enc.c 70noinst_HEADERS = des/ncbc_enc.c
66noinst_HEADERS += compat/thread_private.h 71noinst_HEADERS += compat/thread_private.h