blob: 931ebf4948783651cec41e459b1a631dc0e0e464 (
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
diff -ur autofs-5.0.4-old/Makefile.rules autofs-5.0.4/Makefile.rules
--- autofs-5.0.4-old/Makefile.rules 2009-04-27 10:54:19.000000000 +0200
+++ autofs-5.0.4/Makefile.rules 2009-04-27 10:55:55.000000000 +0200
@@ -24,16 +24,16 @@
ifdef DEBUG
CFLAGS ?= -g -Wall -DDEBUG
-LDFLAGS = -g
+AUTOFS_LDFLAGS = -g
STRIP = :
else
ifdef DONTSTRIP
CFLAGS ?= -O2 -g
-LDFLAGS = -g
+AUTOFS_LDFLAGS = -g
STRIP = :
else
CFLAGS ?= -O2 -Wall
-LDFLAGS = -s
+AUTOFS_LDFLAGS = -s
STRIP = strip --strip-debug
endif
endif
@@ -45,15 +45,14 @@
SOLDFLAGS = -shared
CFLAGS += -D_REENTRANT -D_FILE_OFFSET_BITS=64
-LDFLAGS += -lpthread
ifdef TIRPCLIB
CFLAGS += -I/usr/include/tirpc
-LDFLAGS += $(TIRPCLIB)
+AUTOFS_LDFLAGS += $(TIRPCLIB)
endif
ifdef DMALLOCLIB
-LDFLAGS += $(DMALLOCLIB)
+AUTOFS_LDFLAGS += $(DMALLOCLIB)
endif
# Standard rules
diff -ur autofs-5.0.4-old/daemon/Makefile autofs-5.0.4/daemon/Makefile
--- autofs-5.0.4-old/daemon/Makefile 2009-04-27 10:54:19.000000000 +0200
+++ autofs-5.0.4/daemon/Makefile 2009-04-27 10:54:37.000000000 +0200
@@ -20,12 +20,12 @@
CFLAGS += -DAUTOFS_FLAG_DIR=\"$(autofsflagdir)\"
CFLAGS += -DVERSION_STRING=\"$(version)\"
LDFLAGS += -rdynamic
-LIBS = -ldl
+LIBS = -ldl -lpthread
all: automount
automount: $(OBJS) $(AUTOFS_LIB)
- $(CC) $(LDFLAGS) $(DAEMON_LDFLAGS) -o automount $(OBJS) $(AUTOFS_LIB) $(LIBS)
+ $(CC) $(AUTOFS_LDFLAGS) $(DAEMON_LDFLAGS) $(LDFLAGS) -o automount $(OBJS) $(AUTOFS_LIB) $(LIBS)
$(STRIP) automount
clean:
|