summaryrefslogtreecommitdiff
blob: b9495d3f0eae2595c64c2612a3a1deb782c4322a (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
--- Makefile	2011-02-13 21:38:31.585283408 +0100
+++ Makefile	2011-02-13 21:40:12.888852639 +0100
@@ -141,7 +141,7 @@
 include doc/Makefile
 
 INCLUDES= -Isrc -Isrc/sysdeps/$(CONFIG_SYSDEP_DIR)
-ALL_CFLAGS=$(CPPFLAGS) $(CFLAGS) -O2 -fPIC -Wall $(INCLUDES) -D_GNU_SOURCE
+ALL_CFLAGS=$(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -O2 -fPIC -Wall $(INCLUDES) -D_GNU_SOURCE
 
 
 %.o: %.c LATRACE-CFLAGS
--- src/Makefile	2011-02-13 21:50:08.372234746 +0100
+++ src/Makefile	2011-02-13 21:51:20.299909269 +0100
@@ -19,7 +19,7 @@
 
 # libltaudit.so 
 AUDIT_BIN=libltaudit.so.$(CONFIG_VERSION)
-AUDIT_LDFLAGS="-Wl,-init=audit_init" "-Wl,-soname,$(AUDIT_BIN)" -fPIC -shared
+AUDIT_LDFLAGS="-Wl,-init=audit_init" "-Wl,-soname,$(AUDIT_BIN)" -fPIC -shared $(LDFLAGS)
 AUDIT_LIBS=$(LIBS) $(LEXLIB)
 
 AUDIT_OBJS=\
@@ -42,7 +42,7 @@
 PROGRAMS+= $(AUDIT_BIN)
 
 $(AUDIT_BIN): $(AUDIT_OBJS)
-	$(QUIET_LD)$(CC) $(AUDIT_LDFLAGS) -o $@ $(AUDIT_OBJS) $(AUDIT_LIBS)
+	$(QUIET_LD)$(CC) $(CFLAGS) $(AUDIT_LDFLAGS) -o $@ $(AUDIT_OBJS) $(AUDIT_LIBS)
 
 install::
 	$(call install,$(AUDIT_BIN),$(libdir),755)
@@ -69,7 +69,7 @@
 CPPFLAGS+=-DLT_ARGS_DEF_CONF=\"$(sysconfdir)/latrace.conf\"
 
 $(LATRACE_BIN): $(LATRACE_OBJS)
-	$(QUIET_LD)$(CC) $(LDFLAGS) -o $@ $(LATRACE_OBJS) $(LATRACE_LIBS) $(LATRACE_LIB)
+	$(QUIET_LD)$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(LATRACE_OBJS) $(LATRACE_LIBS) $(LATRACE_LIB)
 
 install::
 	$(call install,$(LATRACE_BIN),$(bindir),755)