gnuradio: gr-fec: add missing dependency to gsl
authorGwenhael Goavec-Merou <gwenhael.goavec-merou@trabucayre.com>
Tue, 22 Nov 2016 09:18:21 +0000 (10:18 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Tue, 22 Nov 2016 09:40:23 +0000 (10:40 +0100)
gr-fec needs gsl. Without this dependency cmake search gsl in the host system.
This issue produce errors like :

arm-buildroot-linux-uclibcgnueabihf-gcc: ERROR: unsafe header/library path used
in cross-compilation: '-I/usr/include'
make[3]: *** [gr-fec/lib/CMakeFiles/gnuradio-fec.dir/reed-solomon/encode_rs.c.o] Error 1

Signed-off-by: Gwenhael Goavec-Merou <gwenhael.goavec-merou@trabucayre.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/gnuradio/Config.in
package/gnuradio/gnuradio.mk

index 50f5e7fa1912d41a17ec7f48e0a2aaec1b1dccba..8301afe8f2e21dc303928d5ecd21053a33a85312 100644 (file)
@@ -49,6 +49,7 @@ config BR2_PACKAGE_GNURADIO_CTRLPORT
 config BR2_PACKAGE_GNURADIO_FEC
        bool "gr-fec support"
        select BR2_PACKAGE_GNURADIO_BLOCKS
+       select BR2_PACKAGE_GSL
        help
          FEC signal processing blocks
 
index 5cb00d24161b44e0d9c8fb1fddf4fc27bbf9c337..f1817f61c2c7e1e30d20598aa25ac4b91dad5073 100644 (file)
@@ -89,6 +89,7 @@ GNURADIO_CONF_OPTS += -DENABLE_GR_DIGITAL=OFF
 endif
 
 ifeq ($(BR2_PACKAGE_GNURADIO_FEC),y)
+GNURADIO_DEPENDENCIES += gsl
 GNURADIO_CONF_OPTS += -DENABLE_GR_FEC=ON
 else
 GNURADIO_CONF_OPTS += -DENABLE_GR_FEC=OFF