b47b2065b2
Fix the following static build failure raised since bump to version
1.1.4 in commit 7205df8a4f
:
CMake Error at /home/autobuild/autobuild/instance-13/output-1/build/libmemcached-1.1.4/src/bin/cmake_install.cmake:60 (file):
file RPATH_CHANGE could not write new RPATH:
$ORIGIN/../lib
to the file:
/home/autobuild/autobuild/instance-13/output-1/host/arc-buildroot-linux-uclibc/sysroot/usr/bin/memcapable
No valid ELF RPATH or RUNPATH entry exists in the file;
Call Stack (most recent call first):
/home/autobuild/autobuild/instance-13/output-1/build/libmemcached-1.1.4/src/cmake_install.cmake:52 (include)
/home/autobuild/autobuild/instance-13/output-1/build/libmemcached-1.1.4/cmake_install.cmake:52 (include)
Fixes:
- http://autobuild.buildroot.org/results/778ff517d465896f54a3cd5316a66c54f66fd4cb
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
43 lines
1.3 KiB
Makefile
43 lines
1.3 KiB
Makefile
################################################################################
|
|
#
|
|
# libmemcached
|
|
#
|
|
################################################################################
|
|
|
|
LIBMEMCACHED_VERSION = 1.1.4
|
|
LIBMEMCACHED_SITE = \
|
|
$(call github,awesomized,libmemcached,$(LIBMEMCACHED_VERSION))
|
|
LIBMEMCACHED_CONF_OPTS = -DENABLE_DTRACE=OFF
|
|
LIBMEMCACHED_INSTALL_STAGING = YES
|
|
LIBMEMCACHED_DEPENDENCIES = host-bison host-flex
|
|
LIBMEMCACHED_LICENSE = BSD-3-Clause
|
|
LIBMEMCACHED_LICENSE_FILES = LICENSE
|
|
LIBMEMCACHED_CPE_ID_VENDOR = awesome
|
|
|
|
# Force Release otherwise libraries will be suffixed by -dbg which will raise
|
|
# unexpected build failures with packages that use libmemcached (e.g. c-icap)
|
|
LIBMEMCACHED_CONF_OPTS += \
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
-DCMAKE_C_FLAGS="$(TARGET_CFLAGS) -std=c99" \
|
|
-DCMAKE_SKIP_RPATH=ON
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBEVENT),y)
|
|
LIBMEMCACHED_DEPENDENCIES += libevent
|
|
LIBMEMCACHED_CONF_OPTS += -DENABLE_MEMASLAP=ON
|
|
else
|
|
LIBMEMCACHED_CONF_OPTS += -DENABLE_MEMASLAP=OFF
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_OPENSSL),y)
|
|
LIBMEMCACHED_DEPENDENCIES += openssl
|
|
LIBMEMCACHED_CONF_OPTS += -DENABLE_OPENSSL_CRYPTO=ON
|
|
else
|
|
LIBMEMCACHED_CONF_OPTS += -DENABLE_OPENSSL_CRYPTO=OFF
|
|
endif
|
|
|
|
ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y)
|
|
LIBMEMCACHED_CONF_OPTS += -DCMAKE_EXE_LINKER_FLAGS=-latomic
|
|
endif
|
|
|
|
$(eval $(cmake-package))
|