Use -std=c99 for C compiler on Lnux

This commit is contained in:
Francis ANDRE
2018-09-27 15:15:53 +02:00
parent 608d383786
commit 8716de6537
6 changed files with 7279 additions and 8 deletions

10
PocoDoc/PocoDoc.ini Normal file
View File

@@ -0,0 +1,10 @@
PocoBuild=Z:\git\poco-1.9.1
PocoBase=Z:\git\poco-1.9.1
PocoDoc.output=releases/poco-1.9.1-all-doc
PocoDoc.version=1.9.1-all
Includes=-IC:/3rd/PostgreSQL/postgresql-10.5-1-win32/pgsql/include,-IC:/3rd/MySQL/mysql-5.7.23-win32/include,-ICppParser/include,-ICppUnit/include,-ICrypto/include,-IEncodings/include,-IData/include,-IData/include,-IData/MySQL/include,-IData/ODBC/include,-IData/PostgreSQL/include,-IData/SQLite/include, -IData/SQLite/src,-IFoundation/include,-IJSON/include,-IMongoDB/include,-INet/include,-INetSSL_OpenSSL/include,-INetSSL_Win/include,-IRedis/include,-IUtil/include,-IXML/include,-IZip/include,-ISevenZip/include,-IPDF/include
VCH=C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.15.26726
WDK=C:/Program Files (x86)/Windows Kits/10/Include/10.0.17134.0
CLP=C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.15.26726/bin/Hostx86/x86

View File

@@ -653,7 +653,7 @@ subprojects {
cCompiler.define "POCO_HAVE_FD_EPOLL"
cCompiler.define "POCO_HAVE_ADDRINFO"
cCompiler.define "POCO_HAVE_LIBRESOLV"
cCompiler.args "-std=c++11"
cCompiler.args "-std=c99"
cppCompiler.define "_XOPEN_SOURCE=600"
cppCompiler.define "_REENTRANT"
@@ -665,9 +665,7 @@ subprojects {
cppCompiler.define "POCO_HAVE_LIBRESOLV"
cppCompiler.args "-std=c++11"
linker.args "-lrt"
linker.args "-ldl"
linker.args "-lpthread"
linker.args ("-lrt", "-ldl", "-lpthread")
} else
if (toolChain in Clang) { // supposed to be for Darwin OSX
cCompiler.define "POCO_HAVE_IPv6"
@@ -691,8 +689,7 @@ subprojects {
cppCompiler.args '-O2'
}
linker.args "-stdlib=libc++"
linker.args "-ldl"
linker.args ("-stdlib=libc++", "-ldl")
}
}
withType(SharedLibraryBinarySpec) {

1009
build.gradle.kampbell Normal file

File diff suppressed because it is too large Load Diff

2
gradle

Submodule gradle updated: fd7f69f2e7...cde5722cd5

Submodule openssl updated: 26b1673caa...0c6d16ec85

6255
x Normal file

File diff suppressed because it is too large Load Diff