summaryrefslogtreecommitdiffstats
path: root/m4/rtems-check-libargs.m4
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2009-02-19 19:55:40 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2009-02-19 19:55:40 +0000
commit89376b7141edb6f927fb940c27391cda6e67c785 (patch)
tree57dd01fd9328b879289493ba848ae5c34c607b91 /m4/rtems-check-libargs.m4
downloadlibbsdport-89376b7141edb6f927fb940c27391cda6e67c785.tar.bz2
Initial import.initial
Diffstat (limited to 'm4/rtems-check-libargs.m4')
-rw-r--r--m4/rtems-check-libargs.m49
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
+)