Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Steve Lhomme
VLC
Commits
c7de7efc
Commit
c7de7efc
authored
Nov 29, 2011
by
Rafaël Carré
Browse files
extra/tools: use gcc-4.2 on Darwin
parent
9697eabd
Changes
1
Hide whitespace changes
Inline
Side-by-side
extras/tools/bootstrap
View file @
c7de7efc
...
...
@@ -65,12 +65,16 @@ check_tar
[
-n
"
$NEEDED
"
]
&&
mkdir
-p
build/
CPUS
=
CC
=
CXX
=
case
`
uname
`
in
Linux
)
CPUS
=
`
grep
-c
^processor /proc/cpuinfo
`
;;
Darwin
)
CPUS
=
`
sysctl hw.ncpu|cut
-d
:
-f2
`
gcc-4.2
--version
>
/dev/null 2>&1
&&
CC
=
CC
=
gcc-4.2
g++-4.2
--version
>
/dev/null 2>&1
&&
CXX
=
CXX
=
g++-4.2
;;
*
)
CPUS
=
1
# default
...
...
@@ -80,6 +84,8 @@ esac
cat
>
Makefile
<<
EOF
MAKEFLAGS += -j
$CPUS
$CC
$CXX
PREFIX=
\$
(abspath ./build)
all:
$NEEDED
...
...
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