summaryrefslogtreecommitdiffstats
path: root/src/Makefile
diff options
context:
space:
mode:
authorJiri Olsa <Jiri Olsa jolsa@redhat.com>2011-02-15 13:06:46 +0100
committerJiri Olsa <Jiri Olsa jolsa@redhat.com>2011-02-15 13:06:46 +0100
commitfa6d2d20b68bcf9b151b6d62de48ad685e389310 (patch)
tree96f93954daa738e0a66c88387bbb9733f1fd3adb /src/Makefile
parentc167c2a3a404f5166ffd70a15a09c97cd1883ee8 (diff)
downloadlatrace-fa6d2d20b68bcf9b151b6d62de48ad685e389310.tar.gz
latrace-fa6d2d20b68bcf9b151b6d62de48ad685e389310.tar.xz
latrace-fa6d2d20b68bcf9b151b6d62de48ad685e389310.zip
Sebastian Pipping <sping@gentoo.org>
fix LDFLAGS/CFLAGS usage
Diffstat (limited to 'src/Makefile')
-rw-r--r--src/Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Makefile b/src/Makefile
index eb16064..0ccec47 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -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=\
@@ -43,7 +43,7 @@ OBJS+=$(AUDIT_OBJS)
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)
@@ -70,7 +70,7 @@ CPPFLAGS+=-DLT_ARGS_DEF_DIR=\"$(confdir)\"
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)