diff options
author | Petr Machata <pmachata@redhat.com> | 2012-09-06 21:56:49 +0200 |
---|---|---|
committer | Mark Wielaard <mjw@redhat.com> | 2014-05-26 11:34:06 +0200 |
commit | be6ce84d68443fbe1bf3734c594031bee8e6ac77 (patch) | |
tree | 1bdf95d8da69c213ab3602bfce85f3e7a943bfd8 | |
parent | a57d93f9154a40de6a5ac978164ea691fc87dbc1 (diff) | |
download | elfutils-dts-0.159.tar.gz |
Build installable libraries with -fpic, -fvisibility=hiddendts-0.159
The test case has to be changed to look for files with different names.
That because per-target rules cause file renaming in autoconf.
Signed-off-by: Mark Wielaard <mjw@redhat.com>
-rw-r--r-- | libasm/Makefile.am | 1 | ||||
-rw-r--r-- | libdw/Makefile.am | 1 | ||||
-rw-r--r-- | libdwelf/Makefile.am | 1 | ||||
-rw-r--r-- | libdwfl/Makefile.am | 1 | ||||
-rw-r--r-- | libebl/Makefile.am | 1 | ||||
-rw-r--r-- | libelf/Makefile.am | 1 | ||||
-rwxr-xr-x | tests/run-arextract.sh | 2 |
7 files changed, 7 insertions, 1 deletions
diff --git a/libasm/Makefile.am b/libasm/Makefile.am index 3d6a2e58..89be3e9c 100644 --- a/libasm/Makefile.am +++ b/libasm/Makefile.am @@ -38,6 +38,7 @@ noinst_LIBRARIES = libasm_pic.a noinst_PROGRAMS = $(noinst_LIBRARIES:_pic.a=.so) pkginclude_HEADERS = libasm.h +libasm_a_CFLAGS = -fpic -fvisibility=hidden $(AM_CFLAGS) libasm_a_SOURCES = asm_begin.c asm_abort.c asm_end.c asm_error.c \ asm_getelf.c asm_newscn.c asm_newscn_ingrp.c \ asm_newsubscn.c asm_newsym.c asm_newcomsym.c \ diff --git a/libdw/Makefile.am b/libdw/Makefile.am index f33ee7f2..2b60b8a7 100644 --- a/libdw/Makefile.am +++ b/libdw/Makefile.am @@ -41,6 +41,7 @@ noinst_PROGRAMS = libdw.so include_HEADERS = dwarf.h pkginclude_HEADERS = libdw.h +libdw_a_CFLAGS = -fpic -fvisibility=hidden $(AM_CFLAGS) libdw_a_SOURCES = dwarf_begin.c dwarf_begin_elf.c dwarf_end.c dwarf_getelf.c \ dwarf_getpubnames.c dwarf_getabbrev.c dwarf_tag.c \ dwarf_error.c dwarf_nextcu.c dwarf_diename.c dwarf_offdie.c \ diff --git a/libdwelf/Makefile.am b/libdwelf/Makefile.am index cd4b7ddf..4f3727cb 100644 --- a/libdwelf/Makefile.am +++ b/libdwelf/Makefile.am @@ -39,6 +39,7 @@ noinst_LIBRARIES = libdwelf.a libdwelf_pic.a pkginclude_HEADERS = libdwelf.h noinst_HEADERS = libdwelfP.h +libdwelf_a_CFLAGS = -fpic -fvisibility=hidden $(AM_CFLAGS) libdwelf_a_SOURCES = dwelf_elf_gnu_debuglink.c dwelf_dwarf_gnu_debugaltlink.c \ dwelf_elf_gnu_build_id.c diff --git a/libdwfl/Makefile.am b/libdwfl/Makefile.am index 72c980bf..705bd7ba 100644 --- a/libdwfl/Makefile.am +++ b/libdwfl/Makefile.am @@ -39,6 +39,7 @@ noinst_LIBRARIES += libdwfl_pic.a pkginclude_HEADERS = libdwfl.h +libdwfl_a_CFLAGS = -fpic -fvisibility=hidden $(AM_CFLAGS) libdwfl_a_SOURCES = dwfl_begin.c dwfl_end.c dwfl_error.c dwfl_version.c \ dwfl_module.c dwfl_report_elf.c relocate.c \ dwfl_module_build_id.c dwfl_module_report_build_id.c \ diff --git a/libebl/Makefile.am b/libebl/Makefile.am index ec4477b7..2e2bf833 100644 --- a/libebl/Makefile.am +++ b/libebl/Makefile.am @@ -57,6 +57,7 @@ gen_SOURCES = eblopenbackend.c eblclosebackend.c eblstrtab.c \ eblstother.c eblinitreg.c ebldwarftoregno.c eblnormalizepc.c \ eblunwind.c eblresolvesym.c eblcheckreloctargettype.c +libebl_a_CFLAGS = -fvisibility=hidden $(AM_CFLAGS) libebl_a_SOURCES = $(gen_SOURCES) noinst_HEADERS = libeblP.h ebl-hooks.h diff --git a/libelf/Makefile.am b/libelf/Makefile.am index 493e4ec1..31fa8a46 100644 --- a/libelf/Makefile.am +++ b/libelf/Makefile.am @@ -41,6 +41,7 @@ include_HEADERS = libelf.h gelf.h nlist.h pkginclude_HEADERS = elf-knowledge.h +libelf_a_CFLAGS = -fpic -fvisibility=hidden $(AM_CFLAGS) libelf_a_SOURCES = elf_version.c elf_hash.c elf_error.c elf_fill.c \ elf_begin.c elf_next.c elf_rand.c elf_end.c elf_kind.c \ gelf_getclass.c elf_getbase.c elf_getident.c \ diff --git a/tests/run-arextract.sh b/tests/run-arextract.sh index 44f4a525..05329527 100755 --- a/tests/run-arextract.sh +++ b/tests/run-arextract.sh @@ -26,7 +26,7 @@ if test -f $archive; then echo -n "Extracting symbols... $ac_c" # The files we are looking at. - for f in ${abs_top_builddir}/libelf/*.o; do + for f in ${abs_top_builddir}/libelf/libelf_a-*.o; do testrun ${abs_builddir}/arextract $archive `basename $f` arextract.test || exit 1 cmp $f arextract.test || { echo "Extraction of $1 failed" |