Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Xiph.Org
aom-rav1e
Commits
57694362
Commit
57694362
authored
Sep 18, 2015
by
James Zern
Committed by
Gerrit Code Review
Sep 18, 2015
Browse files
Merge "configure: add --extra-cxxflags option"
parents
cd82f698
12355c4c
Changes
2
Hide whitespace changes
Inline
Side-by-side
build/make/configure.sh
View file @
57694362
...
...
@@ -73,6 +73,7 @@ Build options:
--target=TARGET target platform tuple [generic-gnu]
--cpu=CPU optimize for a specific cpu rather than a family
--extra-cflags=ECFLAGS add ECFLAGS to CFLAGS [
$CFLAGS
]
--extra-cxxflags=ECXXFLAGS add ECXXFLAGS to CXXFLAGS [
$CXXFLAGS
]
${
toggle_extra_warnings
}
emit harmless warnings (always non-fatal)
${
toggle_werror
}
treat warnings as errors, if possible
(not available with all compilers)
...
...
@@ -337,6 +338,10 @@ check_add_cflags() {
check_cflags
"
$@
"
&&
add_cflags_only
"
$@
"
}
check_add_cxxflags
()
{
check_cxxflags
"
$@
"
&&
add_cxxflags_only
"
$@
"
}
check_add_asflags
()
{
log add_asflags
"
$@
"
add_asflags
"
$@
"
...
...
@@ -503,6 +508,9 @@ process_common_cmdline() {
--extra-cflags
=
*
)
extra_cflags
=
"
${
optval
}
"
;;
--extra-cxxflags
=
*
)
extra_cxxflags
=
"
${
optval
}
"
;;
--enable-
?
*
|
--disable-
?
*
)
eval
`
echo
"
$opt
"
|
sed
's/--/action=/;s/-/ option=/;s/-/_/g'
`
if
echo
"
${
ARCH_EXT_LIST
}
"
|
grep
"^ *
$option
\$
"
>
/dev/null
;
then
...
...
configure
View file @
57694362
...
...
@@ -723,6 +723,10 @@ EOF
check_add_cflags
${
extra_cflags
}
||
\
die
"Requested extra CFLAGS '
${
extra_cflags
}
' not supported by compiler"
fi
if
[
-n
"
${
extra_cxxflags
}
"
]
;
then
check_add_cxxflags
${
extra_cxxflags
}
||
\
die
"Requested extra CXXFLAGS '
${
extra_cxxflags
}
' not supported by compiler"
fi
}
...
...
Write
Preview
Supports
Markdown
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