diff options
author | Kay Sievers <kay.sievers@suse.de> | 2006-03-27 19:30:56 +0200 |
---|---|---|
committer | Kay Sievers <kay.sievers@suse.de> | 2006-03-27 19:30:56 +0200 |
commit | c643d6183653ab908fbda48892357daa29dd5c52 (patch) | |
tree | 1939952fee5448cae7be5ba81855feac09961d68 /extras/volume_id | |
parent | 83cc6ab4760817509f1ed1ee429669e563f82caf (diff) |
volume_id: use shared library by default
Diffstat (limited to 'extras/volume_id')
-rw-r--r-- | extras/volume_id/Makefile | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/extras/volume_id/Makefile b/extras/volume_id/Makefile index 78dfd867bc..72e2d3abb1 100644 --- a/extras/volume_id/Makefile +++ b/extras/volume_id/Makefile @@ -36,7 +36,11 @@ lib/libvolume_id.a: $(PROG): %: $(HEADERS) %.o lib/libvolume_id.a $(E) " LD " $@ +ifeq ($(strip $(VOLUME_ID_STATIC)),true) $(Q) $(LD) $(LDFLAGS) -o $@ $@.o $(LIBUDEV) lib/libvolume_id.a $(LIB_OBJS) +else + $(Q) $(LD) $(LDFLAGS) -o $@ $@.o $(LIBUDEV) -Llib -lvolume_id $(LIB_OBJS) +endif ifneq ($(strip $(STRIPCMD)),) $(E) " STRIP " $@ $(Q) $(STRIPCMD) $@ |