Skip to content

Commit 3766637

Browse files
rvljoachifm
authored andcommittedSep 26, 2017
gnuradio: fix build for gcc6 and newer boost (#29740)
1 parent bda2d25 commit 3766637

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed
 

Diff for: ‎pkgs/applications/misc/gnuradio/default.nix

+7-1
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,14 @@ stdenv.mkDerivation rec {
4141

4242
enableParallelBuilding = true;
4343

44+
postPatch = ''
45+
substituteInPlace \
46+
gr-fec/include/gnuradio/fec/polar_decoder_common.h \
47+
--replace BOOST_CONSTEXPR_OR_CONST const
48+
'';
49+
4450
preConfigure = ''
45-
export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -Wno-unused-variable"
51+
export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -Wno-unused-variable -std=c++11"
4652
'';
4753

4854
# - Ensure we get an interactive backend for matplotlib. If not the gr_plot_*

0 commit comments

Comments
 (0)
Please sign in to comment.