diff --git a/utils/wasmbin/Makefile b/utils/wasmbin/Makefile index 215b0e93a9..4822352458 100644 --- a/utils/wasmbin/Makefile +++ b/utils/wasmbin/Makefile @@ -565,6 +565,13 @@ CROSSGCCOPT=-m32 endif endif endif +ifeq ($(CPU_TARGET),powerpc) +ifeq ($(BINUTILSPREFIX),) +GCCLIBDIR:=$(shell dirname `gcc -m32 -print-libgcc-file-name`) +else +CROSSGCCOPT=-m32 +endif +endif ifeq ($(CPU_TARGET),powerpc64) ifeq ($(BINUTILSPREFIX),) GCCLIBDIR:=$(shell dirname `gcc -m64 -print-libgcc-file-name`)