Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mongodb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
certo
mongodb
Commits
b31089fa
Commit
b31089fa
authored
Aug 31, 2020
by
Vladimir Bashkirtsev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
We should build MongoDB without debug information to save on build time and disk space
parent
d79700e3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
1 deletion
+13
-1
Makefile
Makefile
+2
-1
mongo-r4.2.4-no_debug.patch
mongo-r4.2.4-no_debug.patch
+11
-0
No files found.
Makefile
View file @
b31089fa
...
...
@@ -22,12 +22,13 @@ all: mongodb-service
mv
-v
/etc/gshadow /data/etc/gshadow
ln
-sv
/data/etc/gshadow /etc/gshadow
dd
if
=
/dev/zero
of
=
swap
bs
=
1048576
count
=
8192
dd
if
=
/dev/zero
of
=
swap
bs
=
1048576
count
=
2048
chmod
600
swap
mkswap
swap
swapon
swap
tar
xf
mongo-r4.2.4.tar.gz
patch
-Np1
-d
mongo-r4.2.4
<
mongo-r4.2.4-no_debug.patch
cd
mongo-r4.2.4
&&
pip3
install
-r
buildscripts/requirements.txt
cd
mongo-r4.2.4
&&
scons
all
--release
--opt
=
on
--disable-warnings-as-errors
MONGO_VERSION
=
4.2.4
-j
1
cd
mongo-r4.2.4
&&
scons
--prefix
=
/usr
install
--disable-warnings-as-errors
MONGO_VERSION
=
4.2.4
...
...
mongo-r4.2.4-no_debug.patch
0 → 100644
View file @
b31089fa
diff -uNr mongo-r4.2.4/SConstruct mongo-r4.2.4-no_debug/SConstruct
--- mongo-r4.2.4/SConstruct 2020-03-02 22:31:44.000000000 +0000
+++ mongo-r4.2.4-no_debug/SConstruct 2020-08-22 23:21:30.870326651 +0000
@@ -1859,7 +1859,6 @@
# -Winvalid-pch Warn if a precompiled header (see Precompiled Headers) is found in the search path but can't be used.
env.Append( CCFLAGS=["-fno-omit-frame-pointer",
"-fno-strict-aliasing",
- "-ggdb" if not env.TargetOSIs('emscripten') else "-g",
"-pthread",
"-Wall",
"-Wsign-compare",
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