Skip to content

Commit 512c0f3

Browse files
committed
configure.ac: add check for strip
Currently, "make check" fails on Ubuntu 20.04 because the STRIP variable is not set in the resulting tests/Makefile: """ git clone https://github.com/NixOS/patchelf.git ./bootstrap.sh ./configure make VERBOSE=1 check ... gcc -fPIC -shared -o libbig-dynstr.so big-dynstr.c only-keep-debug libbig-dynstr.so -o libbig-dynstr.debug /bin/bash: only-keep-debug: command not found make[2]: [Makefile:1526: libbig-dynstr.debug] Error 127 (ignored) ... FAIL: no-dynamic-section.sh =========================== patchelf: getting info about 'libbig-dynstr.debug': No such file or directory FAIL no-dynamic-section.sh (exit status: 1) """ strip is used by the regression testsuite, so add a check for it configure.ac. Signed-off-by: Ovidiu Panait <[email protected]>
1 parent 3cfd9a6 commit 512c0f3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

configure.ac

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ AC_CONFIG_SRCDIR([src/patchelf.cc])
44
AC_CONFIG_AUX_DIR([build-aux])
55
AM_INIT_AUTOMAKE([1.11.1 -Wall -Werror dist-bzip2 foreign color-tests parallel-tests])
66

7+
AC_CHECK_TOOL([STRIP], [strip])
8+
79
AM_PROG_CC_C_O
810
AC_PROG_CXX
911
AM_PROG_AS

tests/Makefile.am

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
LIBS =
22

3-
STRIP ?= strip
4-
53
check_PROGRAMS = simple-pie simple main too-many-strtab main-scoped big-dynstr no-rpath contiguous-note-sections
64

75
no_rpath_arch_TESTS = \

0 commit comments

Comments
 (0)