Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
git2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
git2
Commits
4c977a61
Commit
4c977a61
authored
May 26, 2012
by
Vicent Martí
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #734 from scottjg/travis-mingw
Enable mingw cross-compilation in travis-ci
parents
539e6c13
64ab0ba7
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
5 deletions
+8
-5
.travis.yml
+1
-0
CMakeLists.txt
+5
-3
src/netops.c
+2
-2
No files found.
.travis.yml
View file @
4c977a61
...
@@ -8,6 +8,7 @@ language: erlang
...
@@ -8,6 +8,7 @@ language: erlang
env
:
env
:
-
OPTIONS="-DTHREADSAFE=ON -DCMAKE_BUILD_TYPE=Release"
-
OPTIONS="-DTHREADSAFE=ON -DCMAKE_BUILD_TYPE=Release"
-
OPTIONS="-DBUILD_CLAR=ON -DBUILD_EXAMPLES=ON"
-
OPTIONS="-DBUILD_CLAR=ON -DBUILD_EXAMPLES=ON"
-
CC=i586-mingw32msvc-gcc OPTIONS="-DBUILD_CLAR=OFF -DWIN32=ON -DMINGW=ON"
# Make sure CMake is installed
# Make sure CMake is installed
install
:
install
:
...
...
CMakeLists.txt
View file @
4c977a61
...
@@ -71,10 +71,12 @@ IF (MSVC)
...
@@ -71,10 +71,12 @@ IF (MSVC)
# Precompiled headers
# Precompiled headers
ELSE
()
ELSE
()
SET
(
CMAKE_C_FLAGS
"-O2 -g -D_GNU_SOURCE -
fvisibility=hidden -
Wall -Wextra -Wno-missing-field-initializers -Wstrict-aliasing=2 -Wstrict-prototypes -Wmissing-prototypes
${
CMAKE_C_FLAGS
}
"
)
SET
(
CMAKE_C_FLAGS
"-O2 -g -D_GNU_SOURCE -Wall -Wextra -Wno-missing-field-initializers -Wstrict-aliasing=2 -Wstrict-prototypes -Wmissing-prototypes
${
CMAKE_C_FLAGS
}
"
)
SET
(
CMAKE_C_FLAGS_DEBUG
"-O0 -g"
)
SET
(
CMAKE_C_FLAGS_DEBUG
"-O0 -g"
)
IF
(
NOT MINGW
)
# MinGW always does PIC and complains if we tell it to
IF
(
MINGW
)
# MinGW always does PIC and complains if we tell it to
SET
(
CMAKE_C_FLAGS
"
${
CMAKE_C_FLAGS
}
-fPIC"
)
STRING
(
REGEX REPLACE
"-fPIC"
""
CMAKE_SHARED_LIBRARY_C_FLAGS
"
${
CMAKE_SHARED_LIBRARY_C_FLAGS
}
"
)
ELSE
()
SET
(
CMAKE_C_FLAGS
"
${
CMAKE_C_FLAGS
}
-fvisibility=hidden -fPIC"
)
ENDIF
()
ENDIF
()
IF
(
PROFILE
)
IF
(
PROFILE
)
SET
(
CMAKE_C_FLAGS
"-pg
${
CMAKE_C_FLAGS
}
"
)
SET
(
CMAKE_C_FLAGS
"-pg
${
CMAKE_C_FLAGS
}
"
)
...
...
src/netops.c
View file @
4c977a61
...
@@ -12,9 +12,9 @@
...
@@ -12,9 +12,9 @@
# include <netdb.h>
# include <netdb.h>
#else
#else
# include <winsock2.h>
# include <winsock2.h>
# include <
W
s2tcpip.h>
# include <
w
s2tcpip.h>
# ifdef _MSC_VER
# ifdef _MSC_VER
# pragma comment(lib, "
W
s2_32.lib")
# pragma comment(lib, "
w
s2_32.lib")
# endif
# endif
#endif
#endif
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment