[riot-notifications] [RIOT-OS/RIOT] boards/native: fix undefinied reference to qdecs_value (#11733)

nmeum notifications at github.com
Mon Jun 24 14:20:31 CEST 2019

### Contribution description

It is used by boards.c which is also compiled unconditionally. Without this change the build may fail during linking because `qdecs_value` which is declared as `extern` in `boards.c` is not defined. Example error message:

/usr/bin/ld: /home/nmeum/RIOT/examples/hello-world/bin/native/board.a(board.o): in function `native_motor_driver_qdec_simulation':
/home/nmeum/RIOT/boards/native/board.c:39: undefined reference to `qdecs_value'
/usr/bin/ld: /home/nmeum/RIOT/boards/native/board.c:39: undefined reference to `qdecs_value'
collect2: error: ld returned 1 exit status

### Testing procedure

1. Confirm that board.c is compiled unconditionally
2. Confirm that board.c declares `qdecs_value` as `extern`
3. Confirm that the code declaring `qdecs_value` (`cpu/native/periph/qdec.c`) is compiled conditionally

### Issues/PRs references

See also: https://github.com/RIOT-OS/RIOT/pull/11572#issuecomment-496405388
You can view, comment on, or merge this pull request online at:


-- Commit Summary --

  * boards/native: unconditionally depend on qdec

-- File Changes --

    M boards/native/Makefile.dep (3)

-- Patch Links --


You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190624/f26d9899/attachment.html>

More information about the notifications mailing list