X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=ppc_config.mk;h=c95b3b12edac18bc7c9e890c72f969856ae3c3c8;hb=c0170175393b94560fa7a5da6dd31377df5f4a72;hp=a5a5bdd284cc0c98ac99289e1084ee08cdb18edd;hpb=39f0e5f8cda0653e0eb1f7acfad3dc7f1e93a5c2;p=karo-tx-uboot.git diff --git a/ppc_config.mk b/ppc_config.mk index a5a5bdd284..c95b3b12ed 100644 --- a/ppc_config.mk +++ b/ppc_config.mk @@ -22,3 +22,18 @@ # PLATFORM_CPPFLAGS += -DCONFIG_PPC -D__powerpc__ +PLATFORM_LDFLAGS += -n + +# +# When cross-compiling on NetBSD, we have to define __PPC__ or else we +# will pick up a va_list declaration that is incompatible with the +# actual argument lists emitted by the compiler. +# +# [Tested on NetBSD/i386 1.5 + cross-powerpc-netbsd-1.3] + +ifeq ($(CROSS_COMPILE),powerpc-netbsd-) +PLATFORM_CPPFLAGS+= -D__PPC__ +endif +ifeq ($(CROSS_COMPILE),powerpc-openbsd-) +PLATFORM_CPPFLAGS+= -D__PPC__ +endif