diff options
Diffstat (limited to 'm4/rtems-check-libargs.m4')
-rw-r--r-- | m4/rtems-check-libargs.m4 | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/m4/rtems-check-libargs.m4 b/m4/rtems-check-libargs.m4 new file mode 100644 index 0000000..27e67e1 --- /dev/null +++ b/m4/rtems-check-libargs.m4 @@ -0,0 +1,9 @@ +# This macro can be provided as a 5th argument +# to AC_CHECK_LIB() so that linking an RTEMS +# application works. Without that, linking would +# fail because the application usually supplies +# rtems_bsdnet_config. +# In order to link, we create a dummy symbol. +AC_DEFUN([TILLAC_RTEMS_CHECK_LIB_ARGS], + [[-Wl,--defsym,rtems_bsdnet_config=0]]dnl +) |