[vlc-devel] [PATCH] configure: disable -z defs linker check for OpenBSD.
Alexandre Janniaux
ajanni at videolabs.io
Thu Apr 2 10:35:12 CEST 2020
Hi,
Sorry for the lack of answers.
Won't this mean that you would allow undefined symbols other
than those from the standard library too? Shouldn't it be
--allow-shlib-undefined instead? Would you have additional
source to add in the commit message for the usage of that
flag?
Regards,
--
Alexandre Janniaux
Videolabs
On Thu, Apr 02, 2020 at 02:59:12AM -0400, Brad Smith wrote:
> configure: disable -z defs linker check for OpenBSD.
>
> When linking libvlccore with -z defs, the following happens:
>
> ld: error: undefined symbol: (daemon / getpid / fprintf / fclose / free / etc.)
> >>> referenced by libvlc.c
> >>> .libs/libvlc.o:(libvlc_InternalInit)
>
> Shared libraris on OpenBSD are not linked against libc thus this is expected.
> -z defs cannot be used for shared libaries if they reference any libc functions.
> ---
> configure.ac | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/configure.ac b/configure.ac
> index 9aba863449..269fb1f36b 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -163,6 +163,7 @@ case "${host_os}" in
> SYS=openbsd
> CPPFLAGS="${CPPFLAGS} -I/usr/local/include -I/usr/X11R6/include"
> LDFLAGS="${LDFLAGS} -L/usr/local/lib -L/usr/X11R6/lib/"
> + ac_cv_ld_z_defs=no
> ;;
> netbsd*)
> SYS=netbsd
> --
> 2.26.0
>
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel
More information about the vlc-devel
mailing list