diff options
-rw-r--r-- | recipes-ruby/ruby-serialport/ruby-serialport_1.3.0.bb | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/recipes-ruby/ruby-serialport/ruby-serialport_1.3.0.bb b/recipes-ruby/ruby-serialport/ruby-serialport_1.3.0.bb index f00c45c..6767e55 100644 --- a/recipes-ruby/ruby-serialport/ruby-serialport_1.3.0.bb +++ b/recipes-ruby/ruby-serialport/ruby-serialport_1.3.0.bb @@ -18,8 +18,11 @@ S = "${WORKDIR}/git" B = "${S}" do_compile() { - ${CC} ${CFLAGS} ${LDFLAGS} -Iext/native -I${STAGING_INCDIR}/ruby-1.9.1 -I${STAGING_INCDIR}/ruby-1.9.1/arm-linux-eabi -c ext/native/*.c - ${CC} ${CFLAGS} ${LDFLAGS} --shared -o ext/native/serialport.so serialport.o posix_serialport_impl.o + ls -d ${STAGING_INCDIR}/ruby-* >/tmp/ruby.txt + rp=$(ls -d ${STAGING_INCDIR}/ruby-* | head -1) + echo ${rp} >/tmp/ruby2.txt + ${CC} -v ${CFLAGS} ${LDFLAGS} -Iext/native -I${rp} -I${rp}/arm-linux-gnueabi -c ext/native/*.c + ${CC} -v ${CFLAGS} ${LDFLAGS} --shared -o ext/native/serialport.so serialport.o posix_serialport_impl.o } do_install() { |