root/gnuradio/branches/releases/3.1/config/gr_libgnuradio_core_extra_ldflags.m4
| Revision 6044 (checked in by eb, 1 year ago) | |
|---|---|
| |
| Line | |
|---|---|
| 1 | # Check for (MinGW)win32 extra ld options. -*- Autoconf -*- |
| 2 | |
| 3 | # Copyright 2003,2004,2005 Free Software Foundation, Inc. |
| 4 | # |
| 5 | # This file is part of GNU Radio |
| 6 | # |
| 7 | # GNU Radio is free software; you can redistribute it and/or modify |
| 8 | # it under the terms of the GNU General Public License as published by |
| 9 | # the Free Software Foundation; either version 3, or (at your option) |
| 10 | # any later version. |
| 11 | # |
| 12 | # GNU Radio is distributed in the hope that it will be useful, |
| 13 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 15 | # GNU General Public License for more details. |
| 16 | # |
| 17 | # You should have received a copy of the GNU General Public License |
| 18 | # along with GNU Radio; see the file COPYING. If not, write to |
| 19 | # the Free Software Foundation, Inc., 51 Franklin Street, |
| 20 | # Boston, MA 02110-1301, USA. |
| 21 | |
| 22 | dnl |
| 23 | AC_DEFUN([GR_LIBGNURADIO_CORE_EXTRA_LDFLAGS], [ |
| 24 | AC_REQUIRE([AC_PROG_LD]) |
| 25 | # on Mingw32 extra LDFLAGS are required to ease global variable linking |
| 26 | LIBGNURADIO_CORE_EXTRA_LDFLAGS="" |
| 27 | |
| 28 | AC_MSG_CHECKING([whether $LD accepts --enable-runtime-pseudo-reloc]) |
| 29 | if ${LD} --enable-runtime-pseudo-reloc --version >/dev/null 2>&1 |
| 30 | then |
| 31 | # libtool requires the quotes |
| 32 | LIBGNURADIO_CORE_EXTRA_LDFLAGS="\"-Wl,--enable-runtime-pseudo-reloc\"" |
| 33 | AC_MSG_RESULT(yes) |
| 34 | else |
| 35 | AC_MSG_RESULT(no) |
| 36 | fi |
| 37 | |
| 38 | AC_SUBST(LIBGNURADIO_CORE_EXTRA_LDFLAGS) |
| 39 | |
| 40 | ]) |
Note: See TracBrowser for help on using the browser.
