[Asterisk-Dev] Problem with asterisk/codecs/gsm/Makefile asterisk/codecs/mp3

Tilghman Lesher tilghman at mail.jeffandtilghman.com
Thu Oct 16 14:46:35 MST 2003


On Thursday 16 October 2003 16:22, Scott Lambert wrote:
> scott at DellBSD.inch.com ~/src/VENDOR/digium/asterisk/codecs/gsm
> 16:56:52 Thu Oct 16 $ gmake
> gcc  -march= -fomit-frame-pointer   -c -DNeedFunctionPrototypes=1
> -funroll-loops -fPIC -DSASR -DNDEBUG    -DWAV49   -I./inc src/add.c
> cc1: bad value () for -march= switch
> gmake: *** [src/add.o] Error 1
>
> I don't see where PROC is set except in asterisk/Makefile, and that
> is commented out.  This is probably not the right fix but it works
> for me on FreeBSD 4.8-RELEASE-p13.

Actually, this is the way you should be doing it:

root at beastie:/cvs/asterisk# uname -sr
FreeBSD 4.9-RC
root at beastie:/cvs/asterisk# cvs diff -u codecs/lpc10/Makefile
Index: codecs/lpc10/Makefile
===================================================================
RCS file: /usr/cvsroot/asterisk/codecs/lpc10/Makefile,v
retrieving revision 1.3
diff -u -r1.3 Makefile
--- codecs/lpc10/Makefile       27 Apr 2003 18:13:11 -0000      1.3
+++ codecs/lpc10/Makefile       16 Oct 2003 22:11:44 -0000
@@ -2,6 +2,10 @@
 # Makefile for LPC-10 speech coder library (unix)
 #

+ifndef PROC
+PROC=$(shell uname -m)
+endif
+
 # default C compiler
 CC= gcc


-Tilghman




More information about the asterisk-dev mailing list