mirror of
https://github.com/zeromq/libzmq.git
synced 2024-12-26 06:41:03 +08:00
Problem: FD_SETSIZE not set to 16k for all build definitions
Solution: Set FD_SETSIZE to 16k for all other build definitions.
This commit is contained in:
parent
cb0eaf6bce
commit
d49e43bbc8
@ -1,5 +1,5 @@
|
|||||||
CC=gcc
|
CC=gcc
|
||||||
CFLAGS=-Wall -Os -g -DDLL_EXPORT -DFD_SETSIZE=4096 -DZMQ_USE_SELECT -I.
|
CFLAGS=-Wall -Os -g -DDLL_EXPORT -DFD_SETSIZE=16384 -DZMQ_USE_SELECT -I.
|
||||||
LIBS=-lws2_32
|
LIBS=-lws2_32
|
||||||
|
|
||||||
OBJS = ctx.o reaper.o dist.o err.o \
|
OBJS = ctx.o reaper.o dist.o err.o \
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
CC=gcc
|
CC=gcc
|
||||||
CFLAGS=-Wall -Os -g -DDLL_EXPORT -DFD_SETSIZE=4096 -DZMQ_USE_SELECT -I.
|
CFLAGS=-Wall -Os -g -DDLL_EXPORT -DFD_SETSIZE=16384 -DZMQ_USE_SELECT -I.
|
||||||
LIBS=-lws2_32 -lIphlpapi
|
LIBS=-lws2_32 -lIphlpapi
|
||||||
|
|
||||||
OBJS = ctx.o reaper.o dist.o err.o \
|
OBJS = ctx.o reaper.o dist.o err.o \
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
<Tool Name="VCXMLDataGeneratorTool" />
|
<Tool Name="VCXMLDataGeneratorTool" />
|
||||||
<Tool Name="VCWebServiceProxyGeneratorTool" />
|
<Tool Name="VCWebServiceProxyGeneratorTool" />
|
||||||
<Tool Name="VCMIDLTool" />
|
<Tool Name="VCMIDLTool" />
|
||||||
<Tool Name="VCCLCompilerTool" AdditionalOptions="-DDLL_EXPORT -DFD_SETSIZE=4096 -DZMQ_USE_SELECT -D_CRT_SECURE_NO_WARNINGS" Optimization="0" PreprocessorDefinitions="NOMINMAX" MinimalRebuild="true" BasicRuntimeChecks="3" RuntimeLibrary="3" WarningLevel="3" DebugInformationFormat="4" />
|
<Tool Name="VCCLCompilerTool" AdditionalOptions="-DDLL_EXPORT -DFD_SETSIZE=16384 -DZMQ_USE_SELECT -D_CRT_SECURE_NO_WARNINGS" Optimization="0" PreprocessorDefinitions="NOMINMAX" MinimalRebuild="true" BasicRuntimeChecks="3" RuntimeLibrary="3" WarningLevel="3" DebugInformationFormat="4" />
|
||||||
<Tool Name="VCManagedResourceCompilerTool" />
|
<Tool Name="VCManagedResourceCompilerTool" />
|
||||||
<Tool Name="VCResourceCompilerTool" />
|
<Tool Name="VCResourceCompilerTool" />
|
||||||
<Tool Name="VCPreLinkEventTool" />
|
<Tool Name="VCPreLinkEventTool" />
|
||||||
@ -30,7 +30,7 @@
|
|||||||
<Tool Name="VCXMLDataGeneratorTool" />
|
<Tool Name="VCXMLDataGeneratorTool" />
|
||||||
<Tool Name="VCWebServiceProxyGeneratorTool" />
|
<Tool Name="VCWebServiceProxyGeneratorTool" />
|
||||||
<Tool Name="VCMIDLTool" />
|
<Tool Name="VCMIDLTool" />
|
||||||
<Tool Name="VCCLCompilerTool" AdditionalOptions="-DDLL_EXPORT -DFD_SETSIZE=4096 -DZMQ_USE_SELECT -D_CRT_SECURE_NO_WARNINGS" Optimization="2" EnableIntrinsicFunctions="true" RuntimeLibrary="2" EnableFunctionLevelLinking="true" WarningLevel="3" DebugInformationFormat="3" />
|
<Tool Name="VCCLCompilerTool" AdditionalOptions="-DDLL_EXPORT -DFD_SETSIZE=16384 -DZMQ_USE_SELECT -D_CRT_SECURE_NO_WARNINGS" Optimization="2" EnableIntrinsicFunctions="true" RuntimeLibrary="2" EnableFunctionLevelLinking="true" WarningLevel="3" DebugInformationFormat="3" />
|
||||||
<Tool Name="VCManagedResourceCompilerTool" />
|
<Tool Name="VCManagedResourceCompilerTool" />
|
||||||
<Tool Name="VCResourceCompilerTool" />
|
<Tool Name="VCResourceCompilerTool" />
|
||||||
<Tool Name="VCPreLinkEventTool" />
|
<Tool Name="VCPreLinkEventTool" />
|
||||||
@ -49,7 +49,7 @@
|
|||||||
<Tool Name="VCXMLDataGeneratorTool" />
|
<Tool Name="VCXMLDataGeneratorTool" />
|
||||||
<Tool Name="VCWebServiceProxyGeneratorTool" />
|
<Tool Name="VCWebServiceProxyGeneratorTool" />
|
||||||
<Tool Name="VCMIDLTool" />
|
<Tool Name="VCMIDLTool" />
|
||||||
<Tool Name="VCCLCompilerTool" AdditionalOptions="-DZMQ_STATIC -DFD_SETSIZE=4096 -DZMQ_USE_SELECT -D_CRT_SECURE_NO_WARNINGS" Optimization="0" PreprocessorDefinitions="NOMINMAX" MinimalRebuild="true" BasicRuntimeChecks="3" RuntimeLibrary="3" WarningLevel="3" DebugInformationFormat="4" />
|
<Tool Name="VCCLCompilerTool" AdditionalOptions="-DZMQ_STATIC -DFD_SETSIZE=16384 -DZMQ_USE_SELECT -D_CRT_SECURE_NO_WARNINGS" Optimization="0" PreprocessorDefinitions="NOMINMAX" MinimalRebuild="true" BasicRuntimeChecks="3" RuntimeLibrary="3" WarningLevel="3" DebugInformationFormat="4" />
|
||||||
<Tool Name="VCManagedResourceCompilerTool" />
|
<Tool Name="VCManagedResourceCompilerTool" />
|
||||||
<Tool Name="VCResourceCompilerTool" />
|
<Tool Name="VCResourceCompilerTool" />
|
||||||
<Tool Name="VCPreLinkEventTool" />
|
<Tool Name="VCPreLinkEventTool" />
|
||||||
@ -66,7 +66,7 @@
|
|||||||
<Tool Name="VCXMLDataGeneratorTool" />
|
<Tool Name="VCXMLDataGeneratorTool" />
|
||||||
<Tool Name="VCWebServiceProxyGeneratorTool" />
|
<Tool Name="VCWebServiceProxyGeneratorTool" />
|
||||||
<Tool Name="VCMIDLTool" />
|
<Tool Name="VCMIDLTool" />
|
||||||
<Tool Name="VCCLCompilerTool" AdditionalOptions="-DZMQ_STATIC -DFD_SETSIZE=4096 -DZMQ_USE_SELECT -D_CRT_SECURE_NO_WARNINGS" Optimization="2" EnableIntrinsicFunctions="true" RuntimeLibrary="2" EnableFunctionLevelLinking="true" WarningLevel="3" DebugInformationFormat="3" />
|
<Tool Name="VCCLCompilerTool" AdditionalOptions="-DZMQ_STATIC -DFD_SETSIZE=16384 -DZMQ_USE_SELECT -D_CRT_SECURE_NO_WARNINGS" Optimization="2" EnableIntrinsicFunctions="true" RuntimeLibrary="2" EnableFunctionLevelLinking="true" WarningLevel="3" DebugInformationFormat="3" />
|
||||||
<Tool Name="VCManagedResourceCompilerTool" />
|
<Tool Name="VCManagedResourceCompilerTool" />
|
||||||
<Tool Name="VCResourceCompilerTool" />
|
<Tool Name="VCResourceCompilerTool" />
|
||||||
<Tool Name="VCPreLinkEventTool" />
|
<Tool Name="VCPreLinkEventTool" />
|
||||||
@ -83,7 +83,7 @@
|
|||||||
<Tool Name="VCXMLDataGeneratorTool" />
|
<Tool Name="VCXMLDataGeneratorTool" />
|
||||||
<Tool Name="VCWebServiceProxyGeneratorTool" />
|
<Tool Name="VCWebServiceProxyGeneratorTool" />
|
||||||
<Tool Name="VCMIDLTool" />
|
<Tool Name="VCMIDLTool" />
|
||||||
<Tool Name="VCCLCompilerTool" AdditionalOptions="-DDLL_EXPORT -DFD_SETSIZE=4096 -DZMQ_USE_SELECT -D_CRT_SECURE_NO_WARNINGS" Optimization="2" EnableIntrinsicFunctions="true" AdditionalIncludeDirectories="../../../../OpenPGM/include" PreprocessorDefinitions="ZMQ_HAVE_OPENPGM" RuntimeLibrary="2" EnableFunctionLevelLinking="true" WarningLevel="3" DebugInformationFormat="3" />
|
<Tool Name="VCCLCompilerTool" AdditionalOptions="-DDLL_EXPORT -DFD_SETSIZE=16384 -DZMQ_USE_SELECT -D_CRT_SECURE_NO_WARNINGS" Optimization="2" EnableIntrinsicFunctions="true" AdditionalIncludeDirectories="../../../../OpenPGM/include" PreprocessorDefinitions="ZMQ_HAVE_OPENPGM" RuntimeLibrary="2" EnableFunctionLevelLinking="true" WarningLevel="3" DebugInformationFormat="3" />
|
||||||
<Tool Name="VCManagedResourceCompilerTool" />
|
<Tool Name="VCManagedResourceCompilerTool" />
|
||||||
<Tool Name="VCResourceCompilerTool" />
|
<Tool Name="VCResourceCompilerTool" />
|
||||||
<Tool Name="VCPreLinkEventTool" />
|
<Tool Name="VCPreLinkEventTool" />
|
||||||
|
@ -262,8 +262,8 @@ case "${host_os}" in
|
|||||||
CPPFLAGS="-DZMQ_STATIC $CPPFLAGS"
|
CPPFLAGS="-DZMQ_STATIC $CPPFLAGS"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Set FD_SETSIZE to 1024
|
# Set FD_SETSIZE to 16384
|
||||||
CPPFLAGS=" -DFD_SETSIZE=1024 $CPPFLAGS"
|
CPPFLAGS=" -DFD_SETSIZE=16384 $CPPFLAGS"
|
||||||
;;
|
;;
|
||||||
*cygwin*)
|
*cygwin*)
|
||||||
# Define on Cygwin to enable all library features
|
# Define on Cygwin to enable all library features
|
||||||
|
Loading…
x
Reference in New Issue
Block a user