Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
kicad-source-mirror
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
kicad-source-mirror
Commits
9b3d826b
Commit
9b3d826b
authored
Nov 07, 2013
by
Dick Hollenbeck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
switch to static linking of libstdc++ on windows
parent
35b1b13f
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
13 deletions
+4
-13
CMakeLists.txt
CMakeLists.txt
+3
-12
build-config.txt
Documentation/compiling/build-config.txt
+1
-1
No files found.
CMakeLists.txt
View file @
9b3d826b
...
...
@@ -113,16 +113,7 @@ if( CMAKE_COMPILER_IS_GNUCXX )
set
(
CMAKE_CXX_FLAGS_RELEASE
"
${
CMAKE_CXX_FLAGS_RELEASE
}
-DNDEBUG"
)
if
(
MINGW
)
# Set default flags for Release build.
# Use a static link for libstdc++ reduce the starting time for Pcbnew (and eeschema)
# (10 times faster)
# This problem is caused by large relocation table and inefficient MinGW implementation
# see http://sourceforge.net/p/mingw/bugs/1747/ and also
# http://stackoverflow.com/questions/15310996/clang-slow-startup-using-mingw
set
(
CMAKE_EXE_LINKER_FLAGS_RELEASE
"-s -static-libstdc++"
)
# Set default flags for Debug build.
set
(
CMAKE_MODULE_LINKER_FLAGS
"-static-libstdc++"
)
set
(
CMAKE_EXE_LINKER_FLAGS_RELEASE
"-s"
)
else
()
# We build DLL/DSOs from static libraries, so create position independent code
...
...
@@ -274,9 +265,9 @@ include( download_boost )
# On Apple only wxwidgets 2.9 or higher doesn't need to find aui part of base
if
(
APPLE
)
find_package
(
wxWidgets COMPONENTS gl adv html core net base xml QUIET
)
else
(
APPLE
)
else
()
find_package
(
wxWidgets COMPONENTS gl aui adv html core net base xml QUIET
)
endif
(
APPLE
)
endif
()
check_find_package_result
(
wxWidgets_FOUND
"wxWidgets"
)
...
...
Documentation/compiling/build-config.txt
View file @
9b3d826b
...
...
@@ -77,7 +77,7 @@ wxWidgets_USE_DEBUG to ON.
wxWidgets_USE_UNICODE (ON/OFF)
------------------------------
If you platform supports Unicode and you wish to build KiCad with Unicode
If you
r
platform supports Unicode and you wish to build KiCad with Unicode
support, set wxWidgets_USE_UNICODE to ON. Please note as of the 2.9 branch
this option is not required.
...
...
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