Magellan Linux

Annotation of /trunk/attr/patches/attr-2.4.43-only-symlink-when-needed.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 887 - (hide annotations) (download)
Tue Oct 13 12:47:18 2009 UTC (14 years, 8 months ago) by niro
File size: 836 byte(s)
-patches for attr

1 niro 887 We dont want to generate symlinks when the libdir is the same as the
2     devlibdir, otherwise we clobber the real files with broken symlinks
3    
4     --- include/buildmacros
5     +++ include/buildmacros
6     @@ -102,9 +102,11 @@
7     ../$(INSTALL) -m 644 $(LIBNAME).lai $(PKG_DEVLIB_DIR)/$(LIBNAME).la ; \
8     ../$(INSTALL) -m 755 -d $(PKG_LIB_DIR); \
9     ../$(INSTALL) -T so_base $(LIBNAME).lai $(PKG_LIB_DIR); \
10     + if test "x$(PKG_DEVLIB_DIR)" != "x$(PKG_LIB_DIR)" ; then \
11     ../$(INSTALL) -S $(PKG_DEVLIB_DIR)/$(LIBNAME).a $(PKG_LIB_DIR)/$(LIBNAME).a; \
12     ../$(INSTALL) -S $(PKG_DEVLIB_DIR)/$(LIBNAME).la $(PKG_LIB_DIR)/$(LIBNAME).la; \
13     - ../$(INSTALL) -S $(PKG_LIB_DIR)/$(LIBNAME).so $(PKG_DEVLIB_DIR)/$(LIBNAME).so
14     + ../$(INSTALL) -S $(PKG_LIB_DIR)/$(LIBNAME).so $(PKG_DEVLIB_DIR)/$(LIBNAME).so; \
15     + fi
16     else
17     INSTALL_LTLIB_DEV = $(INSTALL_LTLIB_STATIC)
18     endif