summaryrefslogtreecommitdiff
path: root/sysutils/dd_rescue/files/patch-Makefile
blob: 9279a559bad7b8ace829313048f52c008e7c6553 (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
33
34
35
36
37
38
39
--- Makefile.orig	2013-08-13 06:29:50.000000000 +0900
+++ Makefile	2014-01-18 17:48:01.000000000 +0900
@@ -6,10 +6,6 @@
 
 DESTDIR = 
 
-CC = gcc
-RPM_OPT_FLAGS = -Os -Wall -g
-CFLAGS = $(RPM_OPT_FLAGS) $(EXTRA_CFLAGS) -DHAVE_CONFIG_H
-CFLAGS_OPT = $(CFLAGS) -O3
 INSTALL = install
 INSTALLFLAGS = -s
 prefix = $(DESTDIR)/usr
@@ -26,15 +22,9 @@
 INSTASROOT = -o root -g root
 LIBDIR = /usr/lib
 COMPILER = $(shell $(CC) --version | head -n1)
-DEFINES = -DVERSION=\"$(VERSION)\"  -D__COMPILER__="\"$(COMPILER)\""
+DEFINES = -DVERSION=\"$(VERSION)\"  -D__COMPILER__="\"$(COMPILER)\"" -DHAVE_CONFIG_H
 OUT = -o dd_rescue
 
-ifeq ($(CC),wcl386)
-  CFLAGS = "-ox -wx $(EXTRA_CFLAGS)"
-  DEFINES = -dMISS_STRSIGNAL -dMISS_PREAD -dVERSION=\"$(VERSION)\" -d__COMPILER__="\"$(COMPILER)\""
-  OUT = ""
-endif
-
 MACH := $(shell uname -m | tr A-Z a-z | sed 's/i[3456]86/i386/')
 
 ifeq ($(MACH),i386)
@@ -75,7 +65,7 @@
 	$(CC) $(CFLAGS) -DNO_LIBDL $(DEFINES) $< $(OUT) $(OBJECTS) $(LIBDIR)/libfallocate.a
 
 dd_rescue: dd_rescue.c $(HEADERS) $(OBJECTS)
-	$(CC) $(CFLAGS) $(DEFINES) $< $(OUT) $(OBJECTS) -ldl
+	$(CC) $(CFLAGS) $(DEFINES) $< $(OUT) $(OBJECTS)
 
 libfalloc-dl: dd_rescue