Skip to content

Commit 33c07e8

Browse files
committed
configure: option to separately remove objects from build
Those listed in ULTRAGRID_OBJS, eg. in case of some problem - this was not possible without --disable-all, which however removes everything, which is not what is desired if removing some obj for incompatibility (eg aes67 needing std::to_chars not supported on ancient macOS C++ libraries).
1 parent e3cf5f9 commit 33c07e8

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

configure.ac

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3584,6 +3584,15 @@ if test "$build_default" != no || test "$req_files" = all; then
35843584
"
35853585
fi
35863586

3587+
AC_ARG_WITH(object-remove,
3588+
AS_HELP_STRING([--with-object-remove], [remove and object (delimit more with '|')]),
3589+
[removed_files=$withval],
3590+
[removed_files=])
3591+
3592+
if test -n "$removed_files"; then
3593+
ULTRAGRID_OBJS=$(echo "$ULTRAGRID_OBJS" | grep -Ev "$removed_files")
3594+
fi
3595+
35873596
# -------------------------------------------------------------------------------------------------
35883597
# We need to add libraries then
35893598
# -------------------------------------------------------------------------------------------------

0 commit comments

Comments
 (0)