Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 459426 Details for
Bug 470884
dev-libs/elfutils: build fails on uclibc
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
elfutils-0.166-check-libc-dgettext.patch
elfutils-0.166-check-libc-dgettext.patch (text/plain), 4.73 KB, created by
René Rhéaume
on 2017-01-10 02:08:01 UTC
(
hide
)
Description:
elfutils-0.166-check-libc-dgettext.patch
Filename:
MIME Type:
Creator:
René Rhéaume
Created:
2017-01-10 02:08:01 UTC
Size:
4.73 KB
patch
obsolete
>--- elfutils-0.166.orig/configure.ac >+++ elfutils-0.166/configure.ac >@@ -54,6 +54,40 @@ AC_CONFIG_FILES([m4/Makefile]) > dnl The RPM spec file. We substitute a few values in the file. > AC_CONFIG_FILES([elfutils.spec:config/elfutils.spec.in]) > >+dnl Check if we have dgettext available from our libc >+AC_LINK_IFELSE( >+ [AC_LANG_PROGRAM( >+ [#include <libintl.h>], >+ [char *test=dgettext("test","test"); return 0;] >+ )], >+ [libc_has_dgettext="true"], >+ [libc_has_dgettext="false"] >+) >+ >+dnl If our libc doesn't provide dgettext, then test for libintl support >+if test "$libc_has_dgettext" = "false" ; then >+ OLD_LIBS="$LIBS" >+ LIBS="$OLD_LIBS -lintl" >+ AC_MSG_WARN("libc does not have dgettext") >+ AC_LINK_IFELSE( >+ [AC_LANG_PROGRAM( >+ [#include <libintl.h>], >+ [char *test=dgettext("test","test"); return 0;] >+ )], >+ [libintl_has_dgettext="true"], >+ [libintl_has_dgettext="false"] >+ ) >+ if test "$libintl_has_dgettext" = "false"; then >+ AC_MSG_ERROR("no libintl with dgettext found") >+ else >+ intl_LDADD="-lintl" >+ fi >+ LIBS="$OLD_LIBS" >+else >+ intl_LDADD="" >+fi >+AC_SUBST([intl_LDADD]) >+ > > AC_CANONICAL_HOST > >--- elfutils-0.166.orig/libasm/Makefile.am >+++ elfutils-0.166/libasm/Makefile.am >@@ -56,6 +56,7 @@ libasm_pic_a_SOURCES = > am_libasm_pic_a_OBJECTS = $(libasm_a_SOURCES:.c=.os) > > libasm_so_LDLIBS = >+libasm_so_LDLIBS += $(intl_LDADD) > if USE_LOCKS > libasm_so_LDLIBS += -lpthread > endif >--- elfutils-0.166.orig/libdw/Makefile.am >+++ elfutils-0.166/libdw/Makefile.am >@@ -112,7 +112,7 @@ libdw.so$(EXEEXT): $(srcdir)/libdw.map l > -Wl,--enable-new-dtags,-rpath,$(pkglibdir) \ > -Wl,--version-script,$<,--no-undefined \ > -Wl,--whole-archive $(filter-out $<,$^) -Wl,--no-whole-archive\ >- -ldl -lz $(argp_LDADD) $(zip_LIBS) >+ -ldl -lz $(argp_LDADD) $(intl_LDADD) $(zip_LIBS) > @$(textrel_check) > $(AM_V_at)ln -fs $@ $@.$(VERSION) > >--- elfutils-0.166.orig/libelf/Makefile.am >+++ elfutils-0.166/libelf/Makefile.am >@@ -96,6 +96,7 @@ libelf_pic_a_SOURCES = > am_libelf_pic_a_OBJECTS = $(libelf_a_SOURCES:.c=.os) > > libelf_so_LDLIBS = -lz >+libelf_so_LDLIBS += $(intl_LDADD) > if USE_LOCKS > libelf_so_LDLIBS += -lpthread > endif >--- elfutils-0.166.orig/src/Makefile.am >+++ elfutils-0.166/src/Makefile.am >@@ -104,28 +104,28 @@ ranlib_no_Wstack_usage = yes > ar_no_Wstack_usage = yes > unstrip_no_Wstack_usage = yes > >-readelf_LDADD = $(libdw) $(libebl) $(libelf) $(libeu) $(argp_LDADD) -ldl >-nm_LDADD = $(libdw) $(libebl) $(libelf) $(libeu) $(argp_LDADD) -ldl \ >+readelf_LDADD = $(libdw) $(libebl) $(libelf) $(libeu) $(argp_LDADD) $(intl_LDADD) -ldl >+nm_LDADD = $(libdw) $(libebl) $(libelf) $(libeu) $(argp_LDADD) $(intl_LDADD) -ldl \ > $(demanglelib) >-size_LDADD = $(libelf) $(libeu) $(argp_LDADD) >-strip_LDADD = $(libebl) $(libelf) $(libeu) $(argp_LDADD) -ldl >-ld_LDADD = $(libebl) $(libelf) $(libeu) $(argp_LDADD) -ldl >+size_LDADD = $(libelf) $(libeu) $(argp_LDADD) $(intl_LDADD) >+strip_LDADD = $(libebl) $(libelf) $(libeu) $(argp_LDADD) $(intl_LDADD) -ldl >+ld_LDADD = $(libebl) $(libelf) $(libeu) $(argp_LDADD) $(intl_LDADD) -ldl > if NATIVE_LD > # -ldl is always needed for libebl. > ld_LDADD += libld_elf.a > endif > ld_LDFLAGS = -rdynamic >-elflint_LDADD = $(libebl) $(libelf) $(libeu) $(argp_LDADD) -ldl >-findtextrel_LDADD = $(libdw) $(libelf) $(argp_LDADD) >-addr2line_LDADD = $(libdw) $(libelf) $(argp_LDADD) $(demanglelib) >-elfcmp_LDADD = $(libebl) $(libelf) $(argp_LDADD) -ldl >-objdump_LDADD = $(libasm) $(libebl) $(libelf) $(libeu) $(argp_LDADD) -ldl >-ranlib_LDADD = libar.a $(libelf) $(libeu) $(argp_LDADD) >-strings_LDADD = $(libelf) $(libeu) $(argp_LDADD) >-ar_LDADD = libar.a $(libelf) $(libeu) $(argp_LDADD) >-unstrip_LDADD = $(libebl) $(libelf) $(libdw) $(libeu) $(argp_LDADD) -ldl >-stack_LDADD = $(libebl) $(libelf) $(libdw) $(libeu) $(argp_LDADD) -ldl $(demanglelib) >-elfcompress_LDADD = $(libebl) $(libelf) $(libdw) $(libeu) $(argp_LDADD) >+elflint_LDADD = $(libebl) $(libelf) $(libeu) $(argp_LDADD) $(intl_LDADD) -ldl >+findtextrel_LDADD = $(libdw) $(libelf) $(argp_LDADD) $(intl_LDADD) >+addr2line_LDADD = $(libdw) $(libelf) $(argp_LDADD) $(intl_LDADD) $(demanglelib) >+elfcmp_LDADD = $(libebl) $(libelf) $(argp_LDADD) $(intl_LDADD) -ldl >+objdump_LDADD = $(libasm) $(libebl) $(libelf) $(libeu) $(argp_LDADD) $(intl_LDADD) -ldl >+ranlib_LDADD = libar.a $(libelf) $(libeu) $(argp_LDADD) $(intl_LDADD) >+strings_LDADD = $(libelf) $(libeu) $(argp_LDADD) $(intl_LDADD) >+ar_LDADD = libar.a $(libelf) $(libeu) $(argp_LDADD) $(intl_LDADD) >+unstrip_LDADD = $(libebl) $(libelf) $(libdw) $(libeu) $(argp_LDADD) $(intl_LDADD) -ldl >+stack_LDADD = $(libebl) $(libelf) $(libdw) $(libeu) $(argp_LDADD) $(intl_LDADD) -ldl $(demanglelib) >+elfcompress_LDADD = $(libebl) $(libelf) $(libdw) $(libeu) $(argp_LDADD) $(intl_LDADD) > > ldlex.o: ldscript.c > ldlex_no_Werror = yes
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 470884
:
348828
|
348830
|
348832
|
348908
|
349604
|
349608
|
350476
|
350478
|
350480
|
350482
|
350484
|
350486
|
376194
|
376196
|
376198
| 459426 |
459428
|
459430
|
459432
|
459434