Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
GSoC
GSoC2018
macOS
vlc
Commits
9adf970d
Commit
9adf970d
authored
Dec 01, 2011
by
Jean-Baptiste Kempf
Browse files
Configure: simplify MacOS flags
No functionnal change
parent
40c4a544
Changes
1
Show whitespace changes
Inline
Side-by-side
configure.ac
View file @
9adf970d
...
@@ -160,29 +160,22 @@ case "${host_os}" in
...
@@ -160,29 +160,22 @@ case "${host_os}" in
[compile using the SDK in DIR])])
[compile using the SDK in DIR])])
test "${with_macosx_sdk}" = "" && with_macosx_sdk=/Developer/SDKs/MacOSX10.5.sdk
test "${with_macosx_sdk}" = "" && with_macosx_sdk=/Developer/SDKs/MacOSX10.5.sdk
! test -d "${with_macosx_sdk}" && AC_MSG_ERROR([SDK "${with_macosx_sdk}" not found])
! test -d "${with_macosx_sdk}" && AC_MSG_ERROR([SDK "${with_macosx_sdk}" not found])
CPP="${CPP} -isysroot ${with_macosx_sdk}"
CC="${CC} -isysroot ${with_macosx_sdk}"
CXX="${CXX} -isysroot ${with_macosx_sdk}"
OBJC="${OBJC} -isysroot ${with_macosx_sdk}"
LD="${LD} -syslibroot ${with_macosx_sdk}"
AC_ARG_WITH(macosx-version-min,
AC_ARG_WITH(macosx-version-min,
[AS_HELP_STRING([--with-macosx-version-min=VERSION],
[AS_HELP_STRING([--with-macosx-version-min=VERSION],
[compile for MacOS X VERSION and above])])
[compile for MacOS X VERSION and above])])
if test "${with_macosx_version_min}" = "" ; then
if test "${with_macosx_version_min}" = "" ; then
with_macosx_version_min=10.5
with_macosx_version_min=10.5
fi
fi
if test "
${with_macosx_version_min}
" != "" ; then
MACOSX_DEPLOYMENT_TARGET=
${with_macosx_version_min}
CPP="${CPP} -mmacosx-version-min=${with_macosx_version_min}"
CPP="${CPP}
-isysroot ${with_macosx_sdk}
-mmacosx-version-min=${with_macosx_version_min}"
CC="${CC} -mmacosx-version-min=${with_macosx_version_min}"
CC="${CC}
-isysroot ${with_macosx_sdk}
-mmacosx-version-min=${with_macosx_version_min}"
CXX="${CXX} -mmacosx-version-min=${with_macosx_version_min}"
CXX="${CXX}
-isysroot ${with_macosx_sdk}
-mmacosx-version-min=${with_macosx_version_min}"
OBJC="${OBJC} -mmacosx-version-min=${with_macosx_version_min}"
OBJC="${OBJC}
-isysroot ${with_macosx_sdk}
-mmacosx-version-min=${with_macosx_version_min}"
LD="${LD} -macosx_version_min=${with_macosx_version_min}"
LD="${LD} -
syslibroot ${with_macosx_sdk} -m
macosx_version_min=${with_macosx_version_min}"
CFLAGS="${CFLAGS} -DMACOSX_DEPLOYMENT_TARGET=${with_macosx_version_min}"
CFLAGS="${CFLAGS} -DMACOSX_DEPLOYMENT_TARGET=${with_macosx_version_min}"
CXXFLAGS="${CXXFLAGS} -DMACOSX_DEPLOYMENT_TARGET=${with_macosx_version_min}"
CXXFLAGS="${CXXFLAGS} -DMACOSX_DEPLOYMENT_TARGET=${with_macosx_version_min}"
OBJCFLAGS="${OBJCFLAGS} -DMACOSX_DEPLOYMENT_TARGET=${with_macosx_version_min}"
OBJCFLAGS="${OBJCFLAGS} -DMACOSX_DEPLOYMENT_TARGET=${with_macosx_version_min}"
MACOSX_DEPLOYMENT_TARGET=${with_macosx_version_min}
export MACOSX_DEPLOYMENT_TARGET
export MACOSX_DEPLOYMENT_TARGET
fi
;;
;;
*mingw32* | *cygwin* | *wince* | *mingwce*)
*mingw32* | *cygwin* | *wince* | *mingwce*)
AC_CHECK_TOOL(WINDRES, windres, :)
AC_CHECK_TOOL(WINDRES, windres, :)
...
...
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