Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
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
videolan
vlc-2-2
Commits
cef26c7b
Commit
cef26c7b
authored
Apr 14, 2009
by
Felix Paul Kühne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
macosx: compile code explictly for the required architecture.
First step of fixing linking errors against libx264
parent
766e1564
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
5 deletions
+19
-5
configure.ac
configure.ac
+14
-0
extras/contrib/bootstrap
extras/contrib/bootstrap
+5
-5
No files found.
configure.ac
View file @
cef26c7b
...
...
@@ -282,6 +282,20 @@ case "${host_os}" in
OBJC="${OBJC} -isysroot ${with_macosx_sdk}"
LD="${LD} -syslibroot ${with_macosx_sdk}"
fi
if test "${host_cpu}" = "powerpc"; then
CPP="${CPP} -arch ppc"
CC="${CC} -arch ppc"
CXX="${CXX} -arch ppc"
OBJC="${OBJC} -arch ppc"
LD="${LD} -arch ppc"
fi
if test "${host_cpu}" = "i386"; then
CPP="${CPP} -arch i386"
CC="${CC} -arch i386"
CXX="${CXX} -arch i386"
OBJC="${OBJC} -arch i386"
LD="${LD} -arch i386"
fi
AC_ARG_WITH(macosx-version-min,
[ --with-macosx-version-min=VERSION compile for MacOSX VERSION and above])
if test "${with_macosx_version_min}" != "" ; then
...
...
extras/contrib/bootstrap
View file @
cef26c7b
...
...
@@ -129,7 +129,7 @@ case $HOST in
HAVE_DARWIN_9
=
1
CFLAGS_TUNING
=
" -arch ppc -mtune=G4"
EXTRA_CFLAGS
=
" -D
\$
{ENVP} -isysroot
\$
{MACOSX_SDK} -mmacosx-version-min=
\$
{SDK_TARGET}"
EXTRA_LDFLAGS
=
" -isysroot
\$
{MACOSX_SDK} -Wl,-syslibroot,
\$
{MACOSX_SDK}"
EXTRA_LDFLAGS
=
" -
arch ppc -
isysroot
\$
{MACOSX_SDK} -Wl,-syslibroot,
\$
{MACOSX_SDK}"
CC
=
"/Developer/usr/llvm-gcc-4.2/bin/llvm-gcc-4.2"
CXX
=
"/Developer/usr/llvm-gcc-4.2/bin/llvm-g++-4.2"
LD
=
"ld -arch ppc -syslibroot
\$
{MACOSX_SDK}"
...
...
@@ -155,11 +155,11 @@ case $HOST in
fi
echo
"ENVP = MACOSX_DEPLOYMENT_TARGET=
${
SDK_TARGET
}
"
>>
config.mak
echo
"MACOSX_SDK = /Developer/SDKs/MacOSX10.5.sdk"
>>
config.mak
CFLAGS_TUNING
=
" -march=pentium-m -mtune=prescott"
CFLAGS_TUNING
=
" -march=pentium-m -mtune=prescott
-arch i386
"
EXTRA_CFLAGS
=
" -D
\$
{ENVP} -isysroot
\$
{MACOSX_SDK} -mmacosx-version-min=
\$
{SDK_TARGET}"
EXTRA_LDFLAGS
=
" -isysroot
\$
{MACOSX_SDK} -Wl,-syslibroot,
\$
{MACOSX_SDK}"
CC
=
"/Developer/usr/llvm-gcc-4.2/bin/
i686-apple-darwin9-
llvm-gcc-4.2"
CXX
=
"/Developer/usr/llvm-gcc-4.2/bin/
i686-apple-darwin9-
llvm-g++-4.2"
EXTRA_LDFLAGS
=
" -
arch i386 -
isysroot
\$
{MACOSX_SDK} -Wl,-syslibroot,
\$
{MACOSX_SDK}"
CC
=
"/Developer/usr/llvm-gcc-4.2/bin/llvm-gcc-4.2"
CXX
=
"/Developer/usr/llvm-gcc-4.2/bin/llvm-g++-4.2"
echo
"PATH = /bin:/usr/bin:/usr/local/bin"
>>
config.mak
cat
src/Distributions/darwin.mak
>>
distro.mak
if
test
-e
/Developer/SDKs
;
then
...
...
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