Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | Upstream-Status: Pending |
| 2 | |
| 3 | use relative path in symbolic links, or it fails in staging |
| 4 | sed expression from udev |
| 5 | |
| 6 | 7/29/2010 - created by Qing He <qing.he@intel.com> |
| 7 | |
| 8 | diff -u include.orig/buildmacros include/buildmacros |
| 9 | --- include.orig/buildmacros 2010-07-29 17:39:48.000000000 +0800 |
| 10 | +++ include/buildmacros 2010-07-29 18:20:34.000000000 +0800 |
| 11 | @@ -88,9 +88,11 @@ |
| 12 | ../$(INSTALL) -m 755 -d $(PKG_LIB_DIR); \ |
| 13 | ../$(INSTALL) -T so_base $(LIBNAME).lai $(PKG_LIB_DIR); \ |
| 14 | if test "x$(PKG_DEVLIB_DIR)" != "x$(PKG_LIB_DIR)" ; then \ |
| 15 | - ../$(INSTALL) -S $(PKG_DEVLIB_DIR)/$(LIBNAME).a $(PKG_LIB_DIR)/$(LIBNAME).a; \ |
| 16 | - ../$(INSTALL) -S $(PKG_DEVLIB_DIR)/$(LIBNAME).la $(PKG_LIB_DIR)/$(LIBNAME).la; \ |
| 17 | - ../$(INSTALL) -S $(PKG_LIB_DIR)/$(LIBNAME).so $(PKG_DEVLIB_DIR)/$(LIBNAME).so; \ |
| 18 | + rel_lib_prefix=$$(echo $(PKG_LIB_DIR) | sed 's,\(^/\|\)[^/][^/]*,..,g'); \ |
| 19 | + ../$(INSTALL) -S $$rel_lib_prefix$(PKG_DEVLIB_DIR)/$(LIBNAME).a $(PKG_LIB_DIR)/$(LIBNAME).a; \ |
| 20 | + ../$(INSTALL) -S $$rel_lib_prefix$(PKG_DEVLIB_DIR)/$(LIBNAME).la $(PKG_LIB_DIR)/$(LIBNAME).la; \ |
| 21 | + rel_devlib_prefix=$$(echo $(PKG_DEVLIB_DIR) | sed 's,\(^/\|\)[^/][^/]*,..,g'); \ |
| 22 | + ../$(INSTALL) -S $$rel_devlib_prefix$(PKG_LIB_DIR)/$(LIBNAME).so $(PKG_DEVLIB_DIR)/$(LIBNAME).so; \ |
| 23 | fi |
| 24 | else |
| 25 | INSTALL_LTLIB_DEV = $(INSTALL_LTLIB_STATIC) |