mariadb: create symlinks in a portable way
authorSebastian Kemper <sebastian_ml@gmx.net>
Sun, 6 May 2018 15:48:29 +0000 (17:48 +0200)
committerSebastian Kemper <sebastian_ml@gmx.net>
Sun, 6 May 2018 15:48:32 +0000 (17:48 +0200)
Hannu mentioned that --recursive could not be available always. That is
correct. While GNU coreutils' ln supports this, BSD's ln for example does
not.

This commit addresses that.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
utils/mariadb/Makefile

index 4bfc6ac88408be4281c930e61c6d223c8165f940..ddda900dd52d2703019a7247b7cc2a13c8b3792d 100644 (file)
@@ -422,7 +422,7 @@ define Build/InstallDev
        $(LN) $(STAGING_DIR)/usr/bin/mysql_config $(2)/bin/
        $(CP) $(PKG_INSTALL_DIR)/usr/include/mysql $(1)/usr/include/
        $(CP) $(PKG_INSTALL_DIR)/usr/lib/libmysqlclient*.so* $(1)/usr/lib/
-       $(LN) --relative $(1)/usr/lib/libmysqlclient*.so* $(1)/usr/lib/mysql/
+       cd $(1)/usr/lib/mysql; $(LN) ../libmysqlclient*.so* .
        $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/pkgconfig/mariadb.pc $(1)/usr/lib/pkgconfig
        $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/aclocal/mysql.m4 $(1)/usr/share/aclocal
 endef