diff options
| author | Anthony G. Basile <[email protected]> | 2015-05-04 02:25:39 +0300 |
|---|---|---|
| committer | Mark Wielaard <[email protected]> | 2015-05-04 15:56:13 +0200 |
| commit | 1ab3c2befeedf5bd891cfbe17cfef79c06e5079a (patch) | |
| tree | e34cd57c43b8c4cb5e97bd3bb31096f29806814b /libdw | |
| parent | 1ce4a45932cd01f0e8096f636adaa684b6f5c7cb (diff) | |
Link against standalone argp library
argp is not part of POSIX standards and not provided by uClibc or
some other standard C libraries. However, it is possible to link
against a breakout argp library. One is provided at
http://www.lysator.liu.se/~nisse/misc/
This patch tests if libc provides argp otherwise it adds the linker
flag -largp where needed in the build system.
Signed-off-by: Anthony G. Basile <[email protected]>
Signed-off-by: Max Filippov <[email protected]>
Diffstat (limited to 'libdw')
| -rw-r--r-- | libdw/ChangeLog | 5 | ||||
| -rw-r--r-- | libdw/Makefile.am | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/libdw/ChangeLog b/libdw/ChangeLog index 739e0f6e..fd3e4adf 100644 --- a/libdw/ChangeLog +++ b/libdw/ChangeLog @@ -1,3 +1,8 @@ +2015-05-04 Anthony G. Basile <[email protected]> + + * Makefile.am (libdw_so_SOURCES): Append $(argp_LDADD) to link + command. + 2015-04-22 Mark Wielaard <[email protected]> * memory-access.h (__libdw_max_len_leb128): Take type_len as argument. diff --git a/libdw/Makefile.am b/libdw/Makefile.am index 272289c4..2299b2fa 100644 --- a/libdw/Makefile.am +++ b/libdw/Makefile.am @@ -112,7 +112,7 @@ libdw.so$(EXEEXT): $(srcdir)/libdw.map libdw_pic.a ../libdwelf/libdwelf_pic.a \ -Wl,--enable-new-dtags,-rpath,$(pkglibdir) \ -Wl,--version-script,$<,--no-undefined \ -Wl,--whole-archive $(filter-out $<,$^) -Wl,--no-whole-archive\ - -ldl $(zip_LIBS) + -ldl $(argp_LDADD) $(zip_LIBS) @$(textrel_check) ln -fs $@ $@.$(VERSION) |
