mirror of
https://github.com/NixOS/patchelf.git
synced 2025-10-18 09:01:23 +08:00

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 <ovpanait@gmail.com>
36 lines
1.0 KiB
Plaintext
36 lines
1.0 KiB
Plaintext
AC_PREREQ([2.62])
|
|
AC_INIT([patchelf], m4_esyscmd([printf $(cat ./version)]))
|
|
AC_CONFIG_SRCDIR([src/patchelf.cc])
|
|
AC_CONFIG_AUX_DIR([build-aux])
|
|
AM_INIT_AUTOMAKE([1.11.1 -Wall -Werror dist-bzip2 foreign color-tests parallel-tests])
|
|
|
|
AC_CHECK_TOOL([STRIP], [strip])
|
|
|
|
AM_PROG_CC_C_O
|
|
AC_PROG_CXX
|
|
AM_PROG_AS
|
|
|
|
DEFAULT_PAGESIZE=auto
|
|
AC_ARG_WITH([page-size],
|
|
AS_HELP_STRING([--with-page-size=SIZE], [Specify default pagesize (default auto)]),
|
|
DEFAULT_PAGESIZE=$withval
|
|
)
|
|
|
|
if test "$DEFAULT_PAGESIZE" != auto; then
|
|
AC_DEFINE_UNQUOTED(DEFAULT_PAGESIZE, ${DEFAULT_PAGESIZE})
|
|
AC_MSG_RESULT([Setting page size to ${DEFAULT_PAGESIZE}])
|
|
fi
|
|
|
|
AC_ARG_WITH([asan],
|
|
AS_HELP_STRING([--with-asan], [Build with address sanitizer])
|
|
)
|
|
AM_CONDITIONAL([WITH_ASAN], [test x"$with_asan" = xyes])
|
|
|
|
AC_ARG_WITH([ubsan],
|
|
AS_HELP_STRING([--with-ubsan], [Build with undefined behavior sanitizer])
|
|
)
|
|
AM_CONDITIONAL([WITH_UBSAN], [test x"$with_ubsan" = xyes])
|
|
|
|
AC_CONFIG_FILES([Makefile src/Makefile tests/Makefile patchelf.spec])
|
|
AC_OUTPUT
|