Skip to content
Snippets Groups Projects
Commit b2dc96da authored by Alexandre Janniaux's avatar Alexandre Janniaux
Browse files

apple: build: export -m{OS}-version-min in LDFLAGS

Vanilla clang doesn't seem to take the -Wl,--ios-version-min flag into
account and adding this flag doesn't break apple clang build.
parent e5a29593
No related branches found
No related tags found
No related merge requests found
......@@ -309,7 +309,8 @@ set_host_envvars()
export CXXFLAGS="$clike_flags"
export OBJCFLAGS="$clike_flags"
export LDFLAGS="$VLC_DEPLOYMENT_TARGET_LDFLAG -arch $VLC_HOST_ARCH"
# Vanilla clang doesn't use VLC_DEPLOYMENT_TAGET_LDFLAGS but only the CFLAGS variant
export LDFLAGS="$VLC_DEPLOYMENT_TARGET_LDFLAG $VLC_DEPLOYMENT_TARGET_CFLAG -arch $VLC_HOST_ARCH"
}
hostenv()
......@@ -345,7 +346,8 @@ write_config_mak()
local vlc_cxxflags="$clike_flags"
local vlc_objcflags="$clike_flags"
local vlc_ldflags="$VLC_DEPLOYMENT_TARGET_LDFLAG -arch $VLC_HOST_ARCH"
# Vanilla clang doesn't use VLC_DEPLOYMENT_TAGET_LDFLAGS but only the CFLAGS variant
local vlc_ldflags="$VLC_DEPLOYMENT_TARGET_LDFLAG $VLC_DEPLOYMENT_TARGET_CFLAG -arch $VLC_HOST_ARCH"
echo "Creating makefile..."
test -e config.mak && unlink config.mak
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment