From 54dd15397e919abc4c1e7b608cfe98e6c4b62c11 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Sun, 25 Jan 2009 06:09:44 +0100 Subject: [PATCH] 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 Acked-by: Nathan Scott --- include/buildmacros | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/buildmacros b/include/buildmacros index 6c1fc6bd1..ce30cd310 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 -- 2.47.2