[PATCH] build: Make BUILD_LIBDL configurable

Joel Sherrill joel at rtems.org
Thu Aug 10 13:28:14 UTC 2023


It looks ok but why? It isn't built if not supported. It isn't a lot of
code even if it is built. And it will not be in a user executable if they
don't call it.

I just don't see the point.

--joel

On Thu, Aug 10, 2023 at 6:03 AM Sebastian Huber <
sebastian.huber at embedded-brains.de> wrote:

> ---
>  spec/build/cpukit/optlibdl.yml                | 32 +++++++++++--------
>  spec/build/testsuites/libtests/optrtemsld.yml |  2 +-
>  .../testsuites/libtests/optrtemssyms.yml      |  2 +-
>  3 files changed, 21 insertions(+), 15 deletions(-)
>
> diff --git a/spec/build/cpukit/optlibdl.yml
> b/spec/build/cpukit/optlibdl.yml
> index 74458daba1..33a424a520 100644
> --- a/spec/build/cpukit/optlibdl.yml
> +++ b/spec/build/cpukit/optlibdl.yml
> @@ -1,21 +1,27 @@
>  SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
>  actions:
> -- set-value: true
> +- get-boolean: null
>  - env-enable: null
>  build-type: option
>  copyrights:
> -- Copyright (C) 2020 embedded brains GmbH & Co. KG
> -default: []
> -description: ''
> -enabled-by:
> -- aarch64
> -- arm
> -- i386
> -- m68k
> -- mips
> -- moxie
> -- powerpc
> -- sparc
> +- Copyright (C) 2020, 2023 embedded brains GmbH & Co. KG
> +default:
> +- enabled-by:
> +  - aarch64
> +  - arm
> +  - i386
> +  - m68k
> +  - mips
> +  - moxie
> +  - powerpc
> +  - sparc
> +  value: true
> +- enabled-by: true
> +  value: false
> +description: |
> +  Build the libdl.
> +enabled-by: true
> +format: '{}'
>  links: []
>  name: BUILD_LIBDL
>  type: build
> diff --git a/spec/build/testsuites/libtests/optrtemsld.yml
> b/spec/build/testsuites/libtests/optrtemsld.yml
> index 6752f19f70..92058448d6 100644
> --- a/spec/build/testsuites/libtests/optrtemsld.yml
> +++ b/spec/build/testsuites/libtests/optrtemsld.yml
> @@ -8,6 +8,6 @@ copyrights:
>  - Copyright (C) 2020 embedded brains GmbH & Co. KG
>  default: []
>  description: ''
> -enabled-by: true
> +enabled-by: BUILD_LIBDL
>  links: []
>  type: build
> diff --git a/spec/build/testsuites/libtests/optrtemssyms.yml
> b/spec/build/testsuites/libtests/optrtemssyms.yml
> index 2b145c4b58..925b6a3a7d 100644
> --- a/spec/build/testsuites/libtests/optrtemssyms.yml
> +++ b/spec/build/testsuites/libtests/optrtemssyms.yml
> @@ -8,6 +8,6 @@ copyrights:
>  - Copyright (C) 2020 embedded brains GmbH & Co. KG
>  default: []
>  description: ''
> -enabled-by: true
> +enabled-by: BUILD_LIBDL
>  links: []
>  type: build
> --
> 2.35.3
>
> _______________________________________________
> devel mailing list
> devel at rtems.org
> http://lists.rtems.org/mailman/listinfo/devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20230810/e6b9f518/attachment.htm>


More information about the devel mailing list