From: Arkadiusz Miƛkiewicz Date: Wed, 15 Jun 2022 07:00:07 +0000 (+0200) Subject: _BSD_SOURCE is deprecated and causes warnings, so switch to _GNU_SOURCE X-Git-Tag: auto/th/busybox-1.35.0-2~10 X-Git-Url: http://git.pld-linux.org/?p=packages%2Fbusybox.git;a=commitdiff_plain;h=002194f _BSD_SOURCE is deprecated and causes warnings, so switch to _GNU_SOURCE --- 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" \