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@
This commit is contained in:
Brent Cook
2014-07-17 21:20:34 -05:00
parent 0bc4bdde5f
commit d697fdb4af
2 changed files with 22 additions and 13 deletions

View File

@@ -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