tools/libfsimage: append APPEND_LDFLAGS to link command
authorOlaf Hering <olaf@aepfle.de>
Thu, 17 Apr 2014 14:13:43 +0000 (16:13 +0200)
committerIan Campbell <ian.campbell@citrix.com>
Wed, 23 Apr 2014 11:21:34 +0000 (12:21 +0100)
Required to pass -Wl,-rpath,$libdir to link command.

Signed-off-by: Olaf Hering <olaf@aepfle.de>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
tools/libfsimage/common/Makefile

index cbd60b41a7803134aa8b244d10989cd0a0ce7901..fb306f4e33803d0e8593081269d1f96a7462d9e1 100644 (file)
@@ -40,7 +40,7 @@ libfsimage.so.$(MAJOR): libfsimage.so.$(MAJOR).$(MINOR)
        ln -sf $< $@
 
 libfsimage.so.$(MAJOR).$(MINOR): $(PIC_OBJS)
-       $(CC) $(LDFLAGS) -Wl,$(SONAME_LDFLAG) -Wl,libfsimage.so.$(MAJOR) $(SHLIB_LDFLAGS) -o $@ $^ $(PTHREAD_LIBS)
+       $(CC) $(LDFLAGS) -Wl,$(SONAME_LDFLAG) -Wl,libfsimage.so.$(MAJOR) $(SHLIB_LDFLAGS) -o $@ $^ $(PTHREAD_LIBS) $(APPEND_LDFLAGS)
 
 -include $(DEPS)