Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
P
protobuf
Project
Project
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
protobuf
Commits
36093ca4
Commit
36093ca4
authored
Mar 31, 2015
by
Kun Zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tweak flags to make statically-linked binary under Cygwin
parent
cd4e9e72
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletion
+12
-1
build-protoc.sh
protoc-artifacts/build-protoc.sh
+12
-1
No files found.
protoc-artifacts/build-protoc.sh
View file @
36093ca4
...
...
@@ -2,7 +2,18 @@
# Override the default value set in configure.ac that has '-g' which produces
# huge binary.
export
CXXFLAGS
=
-DNDEBUG
export
CXXFLAGS
=
"-DNDEBUG"
# Statically link libgcc and libstdc++
export
LDFLAGS
=
"-static-libgcc -static-libstdc++"
# Under Cygwin we use MinGW GCC because the executable produced by Cygwin GCC
# depends on Cygwin DLL.
if
[[
"
$(
uname
)
"
==
CYGWIN
*
]]
;
then
export
CC
=
i686-pc-mingw32-gcc
export
CXX
=
i686-pc-mingw32-c++
export
CXXCPP
=
i686-pc-mingw32-cpp
fi
cd
$(
dirname
"
$0
"
)
/..
&&
./configure
--disable-shared
&&
make
&&
cd
src
&&
(
strip protoc
||
strip protoc.exe
)
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