diff options
author | Petr Machata <pmachata@redhat.com> | 2012-09-06 21:56:49 +0200 |
---|---|---|
committer | Petr Machata <pmachata@redhat.com> | 2013-10-17 16:51:49 +0200 |
commit | 9b607b3e077017425365fab4e386e8991c4233b6 (patch) | |
tree | 577a8177bcfb3b6d5e3df1c80d7a1d183a57480e | |
parent | 1b95fb6e30ce0667508a42dc1082dcfe05f7af63 (diff) | |
download | elfutils-pmachata/RH-DTS.tar.gz |
Build installable libraries with -fpic, -fvisibility=hiddenpmachata/RH-DTS
The test case has to be changed to look for files with different names.
That because per-target rules cause file renaming in autoconf.
-rw-r--r-- | libasm/Makefile.am | 1 | ||||
-rw-r--r-- | libdw/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 |
6 files changed, 6 insertions, 1 deletions
diff --git a/libasm/Makefile.am b/libasm/Makefile.am index e16d4be0..059fddcc 100644 --- a/libasm/Makefile.am +++ b/libasm/Makefile.am @@ -40,6 +40,7 @@ noinst_PROGRAMS = $(noinst_LIBRARIES:_pic.a=.so) endif 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 f47feb5e..9babfc29 100644 --- a/libdw/Makefile.am +++ b/libdw/Makefile.am @@ -44,6 +44,7 @@ endif 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/libdwfl/Makefile.am b/libdwfl/Makefile.am index 3ef4dd6b..ba8c3111 100644 --- a/libdwfl/Makefile.am +++ b/libdwfl/Makefile.am @@ -41,6 +41,7 @@ endif 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 4d62fad1..ee3505c0 100644 --- a/libebl/Makefile.am +++ b/libebl/Makefile.am @@ -56,6 +56,7 @@ gen_SOURCES = eblopenbackend.c eblclosebackend.c eblstrtab.c \ ebl_check_special_section.c ebl_syscall_abi.c eblabicfi.c \ eblstother.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 5903ea86..2c148f2d 100644 --- a/libelf/Makefile.am +++ b/libelf/Makefile.am @@ -43,6 +43,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" |