summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2009-01-25 06:11:59 +0100
committerChristoph Hellwig <hch@brick.lst.de>2009-01-25 06:11:59 +0100
commit480d69e430d687a5195a9c42d9f38dde95157e6f (patch)
tree3c5344a1c33ac753a67cdf302610eea0767f5e95 /include
parent517b6086e7386398c9b53bcd6c9c8a1c63307fbb (diff)
downloadacl-480d69e430d687a5195a9c42d9f38dde95157e6f.tar.gz
only symlink development libraries when needed
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>
Diffstat (limited to 'include')
-rw-r--r--include/buildmacros4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/buildmacros b/include/buildmacros
index db761b4..bffe891 100644
--- a/include/buildmacros
+++ b/include/buildmacros
@@ -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