Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
4fe1ea31
Commit
4fe1ea31
authored
Oct 13, 2006
by
Derk-Jan Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
backport [17052]: Add tuning options for MacIntel
parent
0c5ff4b6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
8 deletions
+12
-8
configure.ac
configure.ac
+3
-1
extras/contrib/bootstrap
extras/contrib/bootstrap
+9
-7
No files found.
configure.ac
View file @
4fe1ea31
...
...
@@ -1336,7 +1336,9 @@ if test -n "${with_tuning}"; then
CFLAGS_TUNING="-mtune=${with_tuning}"
fi
else
if test "${target_cpu}" = "i686" -o "${target_cpu}" = "i586" -o "${target_cpu}" = "i486" -o "${target_cpu}" = "i386"; then
if test "${SYS}" = "darwin" -a "${target_cpu}" = "i686"; then
CFLAGS_TUNING="-march=pentium-m -mtune=prescott"
elif test "${target_cpu}" = "i686" -o "${target_cpu}" = "i586" -o "${target_cpu}" = "i486" -o "${target_cpu}" = "i386"; then
CFLAGS_TUNING="-mtune=pentium2"
elif test "${target_cpu}" = "x86_64"; then
CFLAGS_TUNING="-mtune=athlon64"
...
...
extras/contrib/bootstrap
View file @
4fe1ea31
...
...
@@ -63,21 +63,23 @@ case $HOST in
# Makefile cross compiling is only supported with gcc-4.0
# ENVP defines the oldest environment on which the program will be able to run
# SDK 10.2.8 requires gcc-3.3 (so we cannot use that SDK)
SDK_TARGET
=
10.3
echo
"SDK_TARGET =
${
SDK_TARGET
}
"
>>
config.mak
SDK_TARGET
=
10.3
echo
"SDK_TARGET =
${
SDK_TARGET
}
"
>>
config.mak
echo
"HAVE_DARWIN_OS = 1"
>>
config.mak
echo
"ENVP = MACOSX_DEPLOYMENT_TARGET=
${
SDK_TARGET
}
"
>>
config.mak
echo
"ENVP = MACOSX_DEPLOYMENT_TARGET=
${
SDK_TARGET
}
"
>>
config.mak
echo
"MACOSX_SDK = /Developer/SDKs/MacOSX10.3.9.sdk"
>>
config.mak
CFLAGS_TUNING
=
" -mtune=G4"
#EXTRA_CFLAGS=" -D\${ENVP} -isysroot \${MACOSX_SDK}"
#EXTRA_LDFLAGS=" -isysroot \${MACOSX_SDK} -Wl,-syslibroot,\${MACOSX_SDK}"
echo
"PATH = /bin:/usr/bin:/usr/local/bin"
>>
config.mak
;;
i686-apple-darwin8
)
SDK_TARGET
=
10.3
echo
"SDK_TARGET =
${
SDK_TARGET
}
"
>>
config.mak
SDK_TARGET
=
10.3
echo
"SDK_TARGET =
${
SDK_TARGET
}
"
>>
config.mak
echo
"HAVE_DARWIN_OS = 1"
>>
config.mak
echo
"ENVP = MACOSX_DEPLOYMENT_TARGET=
${
SDK_TARGET
}
"
>>
config.mak
echo
"ENVP = MACOSX_DEPLOYMENT_TARGET=
${
SDK_TARGET
}
"
>>
config.mak
echo
"MACOSX_SDK = /Developer/SDKs/MacOSX10.3.9.sdk"
>>
config.mak
CFLAGS_TUNING
=
" -march=pentium-m -mtune=prescott"
#EXTRA_CFLAGS=" -D\${ENVP} -isysroot \${MACOSX_SDK}"
#EXTRA_LDFLAGS=" -isysroot \${MACOSX_SDK} -Wl,-syslibroot,\${MACOSX_SDK}"
echo
"PATH = /bin:/usr/bin:/usr/local/bin"
>>
config.mak
...
...
@@ -139,7 +141,7 @@ echo "CXX = ${CXX}" >> config.mak
echo
"LD =
${
LD
}
"
>>
config.mak
echo
"RANLIB =
${
RANLIB
}
"
>>
config.mak
echo
"AR =
${
AR
}
"
>>
config.mak
echo
"EXTRA_CFLAGS =
${
EXTRA_CFLAGS
}
"
>>
config.mak
echo
"EXTRA_CFLAGS =
${
CFLAGS_TUNING
}
${
EXTRA_CFLAGS
}
"
>>
config.mak
echo
"EXTRA_CPPFLAGS =
${
EXTRA_CPPFLAGS
}
-I
${
PREFIX
}
/include"
>>
config.mak
echo
"EXTRA_LDFLAGS =
${
EXTRA_LDFLAGS
}
"
>>
config.mak
echo
"EXTRA_PATH =
${
EXTRA_PATH
}
"
>>
config.mak
...
...
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