]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
yp*: fix -fno-common build
authorKyle Evans <kevans@FreeBSD.org>
Mon, 6 Apr 2020 23:16:05 +0000 (23:16 +0000)
committerKyle Evans <kevans@FreeBSD.org>
Mon, 6 Apr 2020 23:16:05 +0000 (23:16 +0000)
commit3a166b33235fab2284b4709062f43d8f467a74e1
tree6bb7be697f0aa9f348d5d9b61c31744ee388d0f7
parent302ab0eb27f8f98527072595258584949ce62fe8
yp*: fix -fno-common build

This is mostly two problems spread out far and wide:
- ypldap_process should be declared properly
- debug is defined differently in many programs

For the latter, just extern it and define it everywhere that actually needs
it. This mostly works out nicely for ^/libexec/ypxfr, which can remove the
assignment at the beginning of main in favor of defining it properly.

-fno-common will become the default in GCC10/LLVM11.

MFC after: 3 days
libexec/ypxfr/ypxfr_main.c
usr.sbin/rpc.yppasswdd/yppasswdd_main.c
usr.sbin/rpc.ypupdated/ypupdated_main.c
usr.sbin/rpc.ypxfrd/ypxfrd_main.c
usr.sbin/ypldap/ypldap.c
usr.sbin/ypldap/ypldap.h
usr.sbin/ypserv/yp_access.c
usr.sbin/ypserv/yp_error.c
usr.sbin/ypserv/yp_main.c