1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

Add some cflags to ldflags

Things like gcov needs the compilation flags for linker as well.
TODO: cleanup compilation flags usage
This commit is contained in:
Zdenek Kabelac 2011-11-21 13:11:03 +00:00
parent c2bd285160
commit d6a05ea5e6
2 changed files with 2 additions and 1 deletions

View File

@ -120,6 +120,7 @@ CFLAGS += -fPIC -Wall -Wundef -Wshadow -Wcast-align -Wwrite-strings -Wmissing-pr
#CFLAGS += -DDEBUG_CRC32
CFLAGS += @COPTIMISE_FLAG@
LDFLAGS += @COPTIMISE_FLAG@
ifeq ("@DEBUG@", "yes")
CFLAGS += -g -fno-omit-frame-pointer

View File

@ -18,8 +18,8 @@ VPATH = @srcdir@
SOURCES = bitset_t.c matcher_t.c run.c
TARGETS = run
LDFLAGS = -ldevmapper -lcunit
include $(top_builddir)/make.tmpl
LDFLAGS += -ldevmapper -lcunit
unit: run
LD_LIBRARY_PATH=$(top_builddir)/libdm ./run