vlc | branch: master | Konstantin Pavlov <[email protected]> | Tue Oct  4 
13:48:59 2016 +0000| [a9f384270002ad72c68d7e01109a177052c759d0] | committer: 
Konstantin Pavlov

configure: disable -z defs linker check for FreeBSD.

When linking libvlccore with -z defs, the following happens:

posix/.libs/netconf.o: In function `vlc_getProxyUrl': ./src/posix/netconf.c:75:
undefined reference to `environ'

environ on FreeBSD is defined only for the dynamically linked
executables via csu, and is placed in bss section.  It's not available in
libc, which uses the same extern char **environ to access it.

What's interesting is NetBSD took a more compatible approach, where
environ is available both in libc and in csu.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a9f384270002ad72c68d7e01109a177052c759d0
---

 configure.ac | 1 +
 1 file changed, 1 insertion(+)

diff --git a/configure.ac b/configure.ac
index 8080e76..025170f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -118,6 +118,7 @@ case "${host_os}" in
     CFLAGS="${CFLAGS} -pthread"
     CPPFLAGS="${CPPFLAGS} -I/usr/local/include"
     LDFLAGS="${LDFLAGS} -L/usr/local/lib"
+    ac_cv_ld_z_defs=no
     ;;
   openbsd*)
     SYS=openbsd

_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to