Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
CLASS
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
BaM
CLASS
Commits
4e33e9b9
Commit
4e33e9b9
authored
8 years ago
by
Nico
Committed by
BaM
8 years ago
Browse files
Options
Downloads
Patches
Plain Diff
add C++11 flags correctly in install.sh
parent
8f74da34
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
install.sh
+2
-2
2 additions, 2 deletions
install.sh
with
2 additions
and
2 deletions
install.sh
+
2
−
2
View file @
4e33e9b9
...
@@ -23,10 +23,10 @@ guiDir="bin"
...
@@ -23,10 +23,10 @@ guiDir="bin"
#_____________________________________________________________________________
#_____________________________________________________________________________
# compilator and options
# compilator and options
if
[[
-z
"
$CXX
"
]]
;
then
if
[[
-z
"
$CXX
"
]]
;
then
CXX
=
"g++
-std=c++11
"
# default compiler is g++ with C++11
CXX
=
"g++"
# default compiler is g++ with C++11
fi
fi
if
[[
-z
"
$CXXFLAGS
"
]]
;
then
if
[[
-z
"
$CXXFLAGS
"
]]
;
then
CXXFLAGS
=
"-O2 -g -fPIC -finline-functions"
# some optimization flags for GCC, -fPIC and -finline-functions are not avalable for clang
CXXFLAGS
=
"
-std=c++11
-O2 -g -fPIC -finline-functions"
# some optimization flags for GCC, -fPIC and -finline-functions are not avalable for clang
fi
fi
if
[[
-z
"
$CPPFLAGS
"
]]
;
then
if
[[
-z
"
$CPPFLAGS
"
]]
;
then
CPPFLAGS
=
$OMPFLAGS
CPPFLAGS
=
$OMPFLAGS
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment