Skip to content

Commit

Permalink
package/libmemcached: fix static build
Browse files Browse the repository at this point in the history
Fix the following static build failure raised since bump to version
1.1.4 in commit 7205df8:

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 <[email protected]>
Signed-off-by: Peter Korsgaard <[email protected]>
(cherry picked from commit b47b206)
Signed-off-by: Peter Korsgaard <[email protected]>
  • Loading branch information
ffontaine authored and jacmet committed Dec 3, 2023
1 parent dedfab8 commit b1509f7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion package/libmemcached/libmemcached.mk
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ LIBMEMCACHED_CPE_ID_VENDOR = awesome
# 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_C_FLAGS="$(TARGET_CFLAGS) -std=c99" \
-DCMAKE_SKIP_RPATH=ON

ifeq ($(BR2_PACKAGE_LIBEVENT),y)
LIBMEMCACHED_DEPENDENCIES += libevent
Expand Down

0 comments on commit b1509f7

Please sign in to comment.