Summary:ASTERISK-04128: Cross-compilation for PowerPC fails on codecs/gsm
Reporter:Wojtek Kaniewski (wojtekka)Labels:
Date Opened:2005-05-10 07:26:15Date Closed:2011-06-07 14:10:16
Versions:Frequency of
Environment:Attachments:( 0) asterisk-cvs-gsm-cross-compile.patch
Description:It seems that gcc for PowerPC doesn't support -march, which is properly detected by the main Makefile. Unfortunately codecs/gsm/Makefile seems to ignore that the cross-compilation failes with unknown parameter -march=ppc.


I'm using ELDK 3.0 with gcc version 3.2.2 20030217 (Yellow Dog Linux 3.0 3.2.2-2a_1). The attached patch does the trick.

I disclaim any copyrights and stuff like that.
Comments:By: Matthew Fredrickson (mattf) 2005-05-10 18:36:27

Disclaimer on file?

By: twisted (twisted) 2005-05-10 23:17:41

I don't really think a disclaimer is needed for a patch this small, and I'd commit it but I have no way to test it on a ppc box.

By: Wojtek Kaniewski (wojtekka) 2005-05-12 06:17:21

twisted, you don't need a PowerPC box, just some PowerPC toolchain. Native compilation should work fine, because codecs/gsm/Makefile depends on uname, rather than variables from the main Makefile.

By: Matthew Fredrickson (mattf) 2005-05-13 10:55:11

Committed, Thanks ;-)

By: Russell Bryant (russell) 2005-05-18 22:54:48

fixed in 1.0 as well

By: Digium Subversion (svnbot) 2008-01-15 15:34:15.000-0600

Repository: asterisk
Revision: 5645

U   trunk/codecs/gsm/Makefile

r5645 | mattf | 2008-01-15 15:34:15 -0600 (Tue, 15 Jan 2008) | 2 lines

Makefile update for codec_gsm.c to cross compile for powerpc (bug ASTERISK-4128)



By: Digium Subversion (svnbot) 2008-01-15 15:35:29.000-0600

Repository: asterisk
Revision: 5728

U   branches/v1-0/codecs/gsm/Makefile

r5728 | russell | 2008-01-15 15:35:28 -0600 (Tue, 15 Jan 2008) | 2 lines

fix some compilation issues for ppc (bug ASTERISK-4128)