diff options
Diffstat (limited to 'extras/volume_id/Makefile')
-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) $@ |