Remove libintl from static linking library

It is not needed with parted-3.6
This commit is contained in:
Song Tang
2025-04-09 13:22:08 +10:00
parent 51e3caeb18
commit 16d9885577

View File

@@ -69,10 +69,9 @@ PKG_CHECK_MODULES(
# Libraries needed for static linking with parted
if echo "$LDFLAGS" | grep -q "static"; then
AC_CHECK_LIB([intl], [libintl_dgettext])
AC_CHECK_LIB([uuid], [uuid_generate])
AC_CHECK_LIB([devmapper], [dm_task_create], [LIBS="-ldevmapper $LIBS"], [AC_MSG_ERROR([devmapper library not found])])
AC_CHECK_LIB([blkid], [blkid_new_probe], [LIBS="-lblkid $LIBS"], [AC_MSG_ERROR([blkid library not found])])
AC_CHECK_LIB([uuid], [uuid_generate], [LIBS="-luuid $LIBS"], [AC_MSG_ERROR([libuuid is required for static linking but not found])])
AC_CHECK_LIB([devmapper], [dm_task_create], [LIBS="-ldevmapper $LIBS"], [AC_MSG_ERROR([libdevmapper is required for static linking but not found])])
AC_CHECK_LIB([blkid], [blkid_new_probe], [LIBS="-lblkid $LIBS"], [AC_MSG_ERROR([libblkid is required for static linking but not found])])
fi
PKG_CHECK_MODULES([PARTED], [libparted])