Fix H.323 build on ppc (bug #3353)
authorMark Spencer <markster@digium.com>
Sat, 15 Jan 2005 19:04:45 +0000 (19:04 +0000)
committerMark Spencer <markster@digium.com>
Sat, 15 Jan 2005 19:04:45 +0000 (19:04 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4801 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/h323/Makefile

index 97293d2..86dbee4 100755 (executable)
@@ -20,9 +20,12 @@ endif
 # This needs to be updated to deal with more than just little endian machines
 #
 OSARCH=$(shell uname -s)
+PROC=$(shell uname -m)
 ifneq (${OSARCH},FreeBSD)
 ifneq (${OSARCH},NetBSD)
-CFLAGS += -march=$(shell uname -m)
+ifneq (${PROC},ppc)
+CFLAGS += -march=$(ARCH)
+endif
 endif
 endif
 CFLAGS += -DPBYTE_ORDER=PLITTLE_ENDIAN