multipath-tools: arrange compilation options for shared libs/objects
[multipath-tools/.git] / libmultipath / Makefile
index 1f5ec25..c5f4052 100644 (file)
@@ -47,7 +47,7 @@ OBJS = memory.o parser.o vector.o devmapper.o callout.o \
 all: $(LIBS)
 
 $(LIBS): $(OBJS)
-       $(CC) $(LDFLAGS) $(SHARED_FLAGS) -Wl,-soname=$@ -o $@ $(OBJS) $(LIBDEPS)
+       $(CC) $(SHARED_FLAGS) $(LDFLAGS) $(LIBDEPS) -Wl,-soname=$@ $(OBJS) -o $@
        $(LN) $@ $(DEVLIB)
 
 install: