]> git.pld-linux.org Git - packages/busybox.git/commitdiff
_BSD_SOURCE is deprecated and causes warnings, so switch to _GNU_SOURCE
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Wed, 15 Jun 2022 07:00:07 +0000 (09:00 +0200)
committerArkadiusz Miśkiewicz <arekm@maven.pl>
Wed, 15 Jun 2022 07:00:07 +0000 (09:00 +0200)
busybox.spec

index da803999b793d1a61d94b168ed8670703277100b..179ee2cf85b3743a21c1661e94fe10e2fdeebd8c 100644 (file)
@@ -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" \
This page took 0.236237 seconds and 4 git commands to generate.