fix CYGWIN compilation
This commit is contained in:
parent
fd64559643
commit
8340ee4cb1
2
C/load_dl.c
Normal file → Executable file
2
C/load_dl.c
Normal file → Executable file
@ -46,8 +46,10 @@ Yap_LoadForeignFile(char *file, int flags)
|
||||
dlflag = RTLD_LAZY;
|
||||
if (flags & GLOBAL_LOADING)
|
||||
dlflag |= RTLD_GLOBAL;
|
||||
#ifndef __CYGWIN__
|
||||
else
|
||||
dlflag |= RTLD_LOCAL;
|
||||
#endif
|
||||
|
||||
out = (void *)dlopen(file,dlflag);
|
||||
if (!out) {
|
||||
|
1
configure
vendored
1
configure
vendored
@ -5100,6 +5100,7 @@ _ACEOF
|
||||
|
||||
fi
|
||||
|
||||
EXTRA_LIBS_FOR_DLLS="\$(abs_top_builddir)/yap.dll"
|
||||
else
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lwsock32" >&5
|
||||
$as_echo_n "checking for main in -lwsock32... " >&6; }
|
||||
|
@ -553,6 +553,7 @@ then
|
||||
CC="${CC} -mno-cygwin"
|
||||
CXX="${CXX} -mno-cygwin"
|
||||
AC_CHECK_LIB(wsock32,main)
|
||||
EXTRA_LIBS_FOR_DLLS="\$(abs_top_builddir)/yap.dll"
|
||||
else
|
||||
AC_CHECK_LIB(wsock32,main)
|
||||
EXTRA_LIBS_FOR_DLLS="\$(abs_top_builddir)/yap.dll"
|
||||
|
Reference in New Issue
Block a user