[vlc-devel] [RFC][PATCH 2/2] contrib: respect the default tools for osx

Rafaël Carré funman at videolan.org
Wed Dec 14 21:53:23 CET 2011


Le Wed, 14 Dec 2011 21:35:26 +0100,
"Faustino E. Osuna" <enrique.osuna at gmail.com> a écrit :

> Use the default tools instead of explicitly setting our own.

Unfortunately on OSX, those tools are not host-prefixed

For example when cross compiling from intel to ppc, powerpc-apple-darwin9-strip
does not exist, so autotools project using those programs would fail.

I think (hope) Apple made ar/strip etc handle different architectures
correctly, at least it should be true for intel 32/64 bits.

> ---
>  contrib/src/main.mak |    4 ----
>  1 files changed, 0 insertions(+), 4 deletions(-)
> 
> diff --git a/contrib/src/main.mak b/contrib/src/main.mak
> index 7d65b6d..efa791c 100644
> --- a/contrib/src/main.mak
> +++ b/contrib/src/main.mak
> @@ -119,10 +119,6 @@ $(warning overring CC=$(CXX) with g++-4.2)
>  CXX=g++-4.2
>  endif
>  
> -AR=ar
> -LD=ld
> -STRIP=strip
> -RANLIB=ranlib
>  EXTRA_CFLAGS += -isysroot $(MACOSX_SDK) -mmacosx-version-min=$(MIN_OSX_VERSION) -DMACOSX_DEPLOYMENT_TARGET=$(MIN_OSX_VERSION)
>  EXTRA_LDFLAGS += -Wl,-syslibroot,$(MACOSX_SDK) -mmacosx-version-min=$(MIN_OSX_VERSION) -isysroot $(MACOSX_SDK) -DMACOSX_DEPLOYMENT_TARGET=$(MIN_OSX_VERSION)
>  ifeq ($(ARCH),x86_64)



-- 
Rafaël Carré



More information about the vlc-devel mailing list