[2] | 1 | $Id: README.developer 1487 2008-09-10 08:41:36Z jari $ |
---|
| 2 | |
---|
[1372] | 3 | = Disable shared library = |
---|
[573] | 4 | |
---|
[1368] | 5 | yat uses gnu Libtool in order to build shared libraries on a variety |
---|
| 6 | of systems. While this is very nice for making usable binaries, it |
---|
| 7 | can be a pain when trying to debug a program. For that reason, |
---|
| 8 | compilation of shared libraries can be turned off by specifying the |
---|
| 9 | `--disable-shared` option to configure. |
---|
| 10 | |
---|
[1372] | 11 | = Debugging using GDB = |
---|
| 12 | |
---|
| 13 | If shared library is enabled (default), libtool creates wrapper |
---|
| 14 | scripts in test/ that call the test programs located in |
---|
| 15 | test/.libs. While this allow us to dynamically link against the |
---|
| 16 | temporary library in yat/, it makes straightforward usage of GDB |
---|
| 17 | impossible. For that reason libtool provides a wrapper: |
---|
| 18 | |
---|
| 19 | `#> libtool --mode=execute gdb foo_test` |
---|
| 20 | |
---|
| 21 | that sets the necessary environment variables. For more detailed |
---|
| 22 | discussion, please refer to the libtool manual: |
---|
| 23 | |
---|
| 24 | http://www.gnu.org/software/libtool/manual/libtool.html#Debugging-executables |
---|
| 25 | |
---|
| 26 | |
---|
[1262] | 27 | ---------------------------------------------------------------------- |
---|
| 28 | {{{ |
---|
[1371] | 29 | Copyright (C) 2008 Peter Johansson |
---|
[1262] | 30 | |
---|
[1469] | 31 | This file is part of yat library, http://dev.thep.lu.se/yat |
---|
[1262] | 32 | |
---|
| 33 | The yat library is free software; you can redistribute it and/or |
---|
| 34 | modify it under the terms of the GNU General Public License as |
---|
[1486] | 35 | published by the Free Software Foundation; either version 3 of the |
---|
[1262] | 36 | License, or (at your option) any later version. |
---|
| 37 | |
---|
| 38 | The yat library is distributed in the hope that it will be useful, but |
---|
| 39 | WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
| 40 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
---|
| 41 | General Public License for more details. |
---|
| 42 | |
---|
| 43 | You should have received a copy of the GNU General Public License |
---|
[1487] | 44 | along with yat. If not, see <http://www.gnu.org/licenses/>. |
---|
[1262] | 45 | }}} |
---|