summaryrefslogtreecommitdiff
path: root/media-sound/fmdrv/files/fmdrv-1.0.7-fix-makefile.patch
blob: a222752716c778579fcbe62319b51a03e80d6802 (plain)
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
33
34
35
36
37
38
39
40
41
42
--- a/Makefile
+++ b/Makefile
@@ -59,7 +59,7 @@
 	#ELF (works):
 	# $(CC) -Wl,-r -nostdlib -o $@ $^
 	#a.out (works):
-	ar -rc $@ $^
+	$(AR) -rc $@ $^
 
 install: installbin
 	chown root $(BINDIR)/fmdrv
--- a/Makefile.sets
+++ b/Makefile.sets
@@ -1,22 +1,18 @@
 INSTALL=install
-CC=gcc
-CXX=g++
 
-CPP=$(CC)
-LDFLAGS=-g
 #LDLIBS=-lstdc++
 
-CWARNINGS=-Wall -W -pipe -g \
+CWARNINGS=-Wall -W \
     -Wundef \
-    -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes \
-    -Wmissing-prototypes -Winline
+    -Wcast-qual -Wcast-align -Wwrite-strings \
+    -Winline
 #   -Wtraditional  -fmessage-length=128
 
-CXXFLAGS=-pedantic -ffast-math $(CWARNINGS)
+CXXFLAGS+=-pedantic $(CWARNINGS)
 #CFLAGS=-O3 -fomit-frame-pointer -ffast-math $(CWARNINGS)
-CFLAGS=-O -g $(CWARNINGS)
+CFLAGS+=$(CWARNINGS) -Wstrict-prototypes -Wmissing-prototypes
 
-CPPFLAGS=-DVERSION=\"$(VERSION)\" \
+CPPFLAGS+=-DVERSION=\"$(VERSION)\" \
          -DCONFIG=\"$(CFGDIR)/$(CFGFILE)\" \
          -DBINDIR=\"$(BINDIR)\" $(DEFS)