[vlc-devel] [PATCH 08/14] configure: darwin: do not explicitly set ARCH_flag

Marvin Scholz epirat07 at gmail.com
Fri Mar 13 11:07:53 CET 2020



On 13 Mar 2020, at 10:57, Alexandre Janniaux wrote:

> Hi,
>
> Can you explain in the commit message where it is expected
> to pass the flag instead or why it should not be passed here
> if more relevant?
>

Well all I do is not special-casing darwin here, you can just
set it in {C,CXX,OBJC}FLAGS if its really needed (we already do
that anyway for iOS, and 32bit macOS is kinda dead)

I believe thats how you would do it for all other OSes too?

> Regards,
> --
> Alexandre Janniaux
> Videolabs
>
> On Wed, Mar 11, 2020 at 01:37:29PM +0100, Marvin Scholz wrote:
>> ---
>>  configure.ac | 14 +++++---------
>>  1 file changed, 5 insertions(+), 9 deletions(-)
>>
>> diff --git a/configure.ac b/configure.ac
>> index 9a16ec020a..12e16e3641 100644
>> --- a/configure.ac
>> +++ b/configure.ac
>> @@ -154,16 +154,12 @@ case "${host_os}" in
>>      CXXFLAGS="${CXXFLAGS} -fno-stack-check"
>>      OBJCFLAGS="${OBJCFLAGS} -fno-stack-check"
>>
>> -    dnl Force gcc "-arch" flag
>> -    ARCH_flag=""
>>      case "${host_cpu}" in
>>        i?86)
>> -        ARCH_flag="-arch i386"
>>          X86ASMFLAGS="-f macho32"
>>          AX_APPEND_FLAG([-DPREFIX], [X86ASMDEFS])
>>        ;;
>>        x86_64)
>> -        ARCH_flag="-arch x86_64"
>>          X86ASMFLAGS="-f macho64"
>>          AX_APPEND_FLAG([-DPREFIX], [X86ASMDEFS])
>>        ;;
>> @@ -173,12 +169,12 @@ case "${host_os}" in
>>        ;;
>>      esac
>>
>> -    CFLAGS="${CFLAGS} -D_INTL_REDIRECT_MACROS -std=gnu11 
>> ${ARCH_flag}"
>> +    CFLAGS="${CFLAGS} -D_INTL_REDIRECT_MACROS -std=gnu11"
>>      CXX="${CXX} -stdlib=libc++ -std=c++11"
>> -    CXXFLAGS="${CXXFLAGS} -D_INTL_REDIRECT_MACROS ${ARCH_flag}"
>> -    CPPFLAGS="${CPPFLAGS} ${ARCH_flag}"
>> -    OBJCFLAGS="${OBJCFLAGS} -D_INTL_REDIRECT_MACROS -std=gnu11 
>> ${ARCH_flag} -Werror=partial-availability"
>> -    LDFLAGS="${LDFLAGS} -Wl,-headerpad_max_install_names 
>> ${ARCH_flag}"
>> +    CXXFLAGS="${CXXFLAGS} -D_INTL_REDIRECT_MACROS"
>> +    CPPFLAGS="${CPPFLAGS}"
>> +    OBJCFLAGS="${OBJCFLAGS} -D_INTL_REDIRECT_MACROS -std=gnu11 
>> -Werror=partial-availability"
>> +    LDFLAGS="${LDFLAGS} -Wl,-headerpad_max_install_names"
>>      VLC_ADD_LIBS([libvlc 
>> vlc],[-Wl,-undefined,dynamic_lookup,-framework,AppKit])
>>      VLC_ADD_LIBS([libvlccore],[-Wl,-framework,CoreFoundation,-framework,CoreServices])
>>
>> --
>> 2.21.1 (Apple Git-122.3)
>>
>> _______________________________________________
>> vlc-devel mailing list
>> To unsubscribe or modify your subscription options:
>> https://mailman.videolan.org/listinfo/vlc-devel
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel


More information about the vlc-devel mailing list