0f708344c7
Fix the following build failure raised since bump of glibc to version 2.39 in commitb5680f53d6
: /home/autobuild/autobuild/instance-10/output-1/host/lib/gcc/nios2-buildroot-linux-gnu/12.3.0/../../../../nios2-buildroot-linux-gnu/bin/ld: cannot find -lcrypt: No such file or directory Fixes:b5680f53d6
- http://autobuild.buildroot.org/results/3a5cc2a90d58f39a6c9f27ad87e0d54e705f0c84 Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
49 lines
1.3 KiB
Makefile
49 lines
1.3 KiB
Makefile
################################################################################
|
|
#
|
|
# libcli
|
|
#
|
|
################################################################################
|
|
|
|
LIBCLI_VERSION = 1.10.7
|
|
LIBCLI_SITE = $(call github,dparrish,libcli,V$(LIBCLI_VERSION))
|
|
LIBCLI_LICENSE = LGPL-2.1
|
|
LIBCLI_LICENSE_FILES = COPYING
|
|
LIBCLI_INSTALL_STAGING = YES
|
|
|
|
# We will pass optimisation level via CFLAGS so remove libcli default
|
|
LIBCLI_MAKE_ARGS += OPTIM=
|
|
|
|
# We can't run the test harness
|
|
LIBCLI_MAKE_ARGS += TESTS=
|
|
|
|
# Disable the static library for shared only build
|
|
ifeq ($(BR2_SHARED_LIBS),y)
|
|
LIBCLI_MAKE_ARGS += STATIC_LIB=
|
|
endif
|
|
|
|
# Disable the shared library for static only build
|
|
ifeq ($(BR2_STATIC_LIBS),y)
|
|
LIBCLI_MAKE_ARGS += DYNAMIC_LIB=
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBXCRYPT),y)
|
|
LIBCLI_DEPENDENCIES += libxcrypt
|
|
endif
|
|
|
|
define LIBCLI_BUILD_CMDS
|
|
$(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D) \
|
|
$(LIBCLI_MAKE_ARGS)
|
|
endef
|
|
|
|
define LIBCLI_INSTALL_STAGING_CMDS
|
|
$(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D) \
|
|
$(LIBCLI_MAKE_ARGS) DESTDIR=$(STAGING_DIR) PREFIX=/usr install
|
|
endef
|
|
|
|
define LIBCLI_INSTALL_TARGET_CMDS
|
|
$(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D) \
|
|
$(LIBCLI_MAKE_ARGS) DESTDIR=$(TARGET_DIR) PREFIX=/usr install
|
|
endef
|
|
|
|
$(eval $(generic-package))
|