[vlc-commits] configure: disable -z defs linker check for FreeBSD.
Konstantin Pavlov
git at videolan.org
Wed Oct 5 14:29:37 CEST 2016
vlc | branch: master | Konstantin Pavlov <thresh at videolan.org> | 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
More information about the vlc-commits
mailing list