aboutsummaryrefslogtreecommitdiff
path: root/net/asterisk12/files/patch-codecs::lpc10::Makefile
blob: 1674119a48366e569f6c029652792f75d4ddb6a6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32

$FreeBSD$

--- codecs/lpc10/Makefile.orig	Mon Mar 15 18:52:28 2004
+++ codecs/lpc10/Makefile	Wed Apr 14 22:13:47 2004
@@ -3,7 +3,7 @@
 # 
 
 # default C compiler
-CC= gcc
+CC?= gcc
 
 # 
 # These definitions for CFLAGS and LIB_TARGET_DIR are used when one
@@ -22,7 +22,7 @@
 # 
 
 WARNINGS = -Wall -Wno-comment -Wno-error
-CFLAGS = $(OPTIMIZE) -I$(LIB_TARGET_DIR) $(WARNINGS) -fPIC
+CFLAGS += $(OPTIMIZE) -I$(LIB_TARGET_DIR) $(WARNINGS) -fPIC
 #CFLAGS+= $(shell if uname -m | grep -q 86; then echo "-mpentium" ; fi)
 
 #fix for PPC processors and ALPHA too
@@ -30,7 +30,7 @@
 ifneq ($(PROC),ppc)
 ifneq ($(PROC),x86_64)
 ifneq ($(PROC),alpha)
-	CFLAGS+= -march=$(PROC)
+	CFLAGS+=
 endif
 endif
 endif