Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
e1c20ea1
Commit
e1c20ea1
authored
Feb 22, 2011
by
Christian Kandeler
Browse files
Maemo: Tell compiler which paths to mangle.
Can be overridden by setting the environment variable maually.
parent
ff5f5f0d
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/qt4projectmanager/qt-maemo/maemotoolchain.cpp
View file @
e1c20ea1
...
...
@@ -102,6 +102,15 @@ void MaemoToolChain::addToEnvironment(Utils::Environment &env) const
.
arg
(
maddeRoot
)));
env
.
prependOrSet
(
QLatin1String
(
"PERL5LIB"
),
QDir
::
toNativeSeparators
(
QString
(
"%1/madlib/perl5"
).
arg
(
maddeRoot
)));
const
QString
manglePathsKey
=
QLatin1String
(
"GCCWRAPPER_PATHMANGLE"
);
if
(
!
env
.
hasKey
(
manglePathsKey
))
{
const
QStringList
pathsToMangle
=
QStringList
()
<<
QLatin1String
(
"/lib"
)
<<
QLatin1String
(
"/opt"
)
<<
QLatin1String
(
"/usr"
);
env
.
set
(
manglePathsKey
,
QString
());
foreach
(
const
QString
&
path
,
pathsToMangle
)
env
.
appendOrSet
(
manglePathsKey
,
path
,
QLatin1String
(
":"
));
}
}
QString
MaemoToolChain
::
sysroot
()
const
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment