[packages/busybox] _BSD_SOURCE is deprecated and causes warnings, so switch to _GNU_SOURCE
arekm
arekm at pld-linux.org
Wed Jun 15 11:03:17 CEST 2022
commit 002194f6e2083831984730037e8f83af5104b240
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Wed Jun 15 09:00:07 2022 +0200
_BSD_SOURCE is deprecated and causes warnings, so switch to _GNU_SOURCE
busybox.spec | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/busybox.spec b/busybox.spec
index da80399..179ee2c 100644
--- a/busybox.spec
+++ b/busybox.spec
@@ -199,7 +199,7 @@ echo 'CONFIG_EXTRA_LDLIBS="%{?with_glibc:%{tirpcslibs}}"' >> .config
%{__make} oldconfig
%{__make} \
%{?with_verbose:V=1} \
- EXTRA_CFLAGS="%{rpmcflags} %{?with_glibc:%{tirpccflags}} -Os -D_BSD_SOURCE %{!?with_glibc:-fno-stack-protector}" \
+ EXTRA_CFLAGS="%{rpmcflags} %{?with_glibc:%{tirpccflags}} -Os -D_GNU_SOURCE %{!?with_glibc:-fno-stack-protector}" \
EXTRA_LDFLAGS="%{rpmldflags} -static -Wl,-z,noexecstack" \
%if %{with dietlibc}
LIBRARIES="-lrpc" \
@@ -230,7 +230,7 @@ echo 'CONFIG_EXTRA_LDLIBS="%{?with_glibc:%{tirpcslibs}}"' >> .config
%{__make} oldconfig
%{__make} \
%{?with_verbose:V=1} \
- EXTRA_CFLAGS="%{rpmcflags} %{?with_glibc:%{tirpccflags}} -Os -D_BSD_SOURCE %{!?with_glibc:-fno-stack-protector}" \
+ EXTRA_CFLAGS="%{rpmcflags} %{?with_glibc:%{tirpccflags}} -Os -D_GNU_SOURCE %{!?with_glibc:-fno-stack-protector}" \
EXTRA_LDFLAGS="%{rpmldflags} -static -Wl,-z,noexecstack" \
%if %{with dietlibc}
LIBRARIES="-lrpc" \
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/busybox.git/commitdiff/b36f29571b2faccbdf91466d411ca9b26b187e6e
More information about the pld-cvs-commit
mailing list