]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
only symlink development libraries when needed
authorMike Frysinger <vapier@gentoo.org>
Sun, 25 Jan 2009 05:09:44 +0000 (06:09 +0100)
committerChristoph Hellwig <hch@brick.lst.de>
Sun, 25 Jan 2009 05:09:44 +0000 (06:09 +0100)
We dont want to generate symlinks when the libdir is the same as the
devlibdir, otherwise we clobber the real files with broken symlinks.

Reviewed-by: Christoph Hellwig <hch@lst.de>
Acked-by: Nathan Scott <nscott@aconex.com>
include/buildmacros

index 6c1fc6bd1b50e5ce4da441e30012e84a5b0ba191..ce30cd310956f96de7eb39d5257d389db6e017dd 100644 (file)
@@ -74,9 +74,11 @@ INSTALL_LTLIB_DEV = \
        ../$(INSTALL) -m 644 $(LIBNAME).lai $(PKG_DEVLIB_DIR)/$(LIBNAME).la ; \
        ../$(INSTALL) -m 755 -d $(PKG_LIB_DIR); \
        ../$(INSTALL) -T so_base $(LIBNAME).lai $(PKG_LIB_DIR); \
+       if test "x$(PKG_DEVLIB_DIR)" != "x$(PKG_LIB_DIR)" ; then \
        ../$(INSTALL) -S $(PKG_DEVLIB_DIR)/$(LIBNAME).a $(PKG_LIB_DIR)/$(LIBNAME).a; \
        ../$(INSTALL) -S $(PKG_DEVLIB_DIR)/$(LIBNAME).la $(PKG_LIB_DIR)/$(LIBNAME).la; \
-       ../$(INSTALL) -S $(PKG_LIB_DIR)/$(LIBNAME).so $(PKG_DEVLIB_DIR)/$(LIBNAME).so
+       ../$(INSTALL) -S $(PKG_LIB_DIR)/$(LIBNAME).so $(PKG_DEVLIB_DIR)/$(LIBNAME).so; \
+       fi
 else
 INSTALL_LTLIB_DEV = $(INSTALL_LTLIB_STATIC)
 endif