forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
dagrab-0.513-build.patch
50 lines (45 loc) · 1.18 KB
/
dagrab-0.513-build.patch
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
43
44
45
46
47
48
49
50
--- dagrab-S0.513/dagrab.c
+++ dagrab-S0.513/dagrab.c
@@ -776,6 +776,7 @@
thread_save(NULL);
#endif
do_not_write_now:
+ ;
}
/****************************************************************
* Close output file *
--- dagrab-S0.513/jit_in.c
+++ dagrab-S0.513/jit_in.c
@@ -74,5 +74,6 @@
*p = (*(p + SSIZE) + *(p - SSIZE)) / 2;
view_status(ID_JITTER, NULL);
is_ok: /* means continue */
+ ;
}
}
--- dagrab-S0.513/Makefile
+++ dagrab-S0.513/Makefile
@@ -3,14 +3,12 @@
# Note: PTHREAD support is optional, you can comment it out
################################################################################
-CC= gcc
-CFLAGS= -O ${UCD} -W -Wall -DPTHREAD #-g # #-DDEBUG
-LDFLAGS=-O -s -lpthread # -static
PREFIX=/usr/local
-
-ifneq ($(wildcard /usr/include/linux/ucdrom.h),)
- CFLAGS +=-DUSE_UCDROM
-endif
+CC ?= gcc
+CFLAGS ?= -O
+CFLAGS += -W -Wall -DPTHREAD
+LDFLAGS ?= -O
+LIBS = -lpthread
all: dagrab
@@ -28,7 +26,7 @@
err.o: dagrab.h main.h
dagrab: $(OBJ) Makefile
- $(CC) $(LDFLAGS) $(OBJ) $(LIBS) -o dagrab
+ $(CC) $(CFLAGS) $(LDFLAGS) $(OBJ) $(LIBS) -o dagrab
clean:
rm -f dagrab *.o *.wav *.mp[23] *.ogg .*swp *~ gmon.out tags