123456789101112131415161718192021222324252627282930 |
- Author: Balint Reczey <balint@balintreczey.hu>
- Description: Build libbfd with -fPIC to allow linking with PIE binaries
- Index: b/bfd/Makefile.am
- ===================================================================
- --- a/bfd/Makefile.am
- +++ b/bfd/Makefile.am
- @@ -51,7 +51,7 @@ ZLIBINC = @zlibinc@
-
- WARN_CFLAGS = @WARN_CFLAGS@
- NO_WERROR = @NO_WERROR@
- -AM_CFLAGS = $(WARN_CFLAGS) $(ZLIBINC)
- +AM_CFLAGS = $(WARN_CFLAGS) $(ZLIBINC) -fPIC
- AM_CPPFLAGS = -DBINDIR='"$(bindir)"'
- if PLUGINS
- bfdinclude_HEADERS += $(INCDIR)/plugin-api.h
- Index: b/bfd/Makefile.in
- ===================================================================
- --- a/bfd/Makefile.in
- +++ b/bfd/Makefile.in
- @@ -475,7 +475,7 @@ libbfd_la_LDFLAGS = $(am__append_1) -rel
- # case both are empty.
- ZLIB = @zlibdir@ -lz
- ZLIBINC = @zlibinc@
- -AM_CFLAGS = $(WARN_CFLAGS) $(ZLIBINC)
- +AM_CFLAGS = $(WARN_CFLAGS) $(ZLIBINC) -fPIC
- AM_CPPFLAGS = -DBINDIR='"$(bindir)"' @HDEFINES@ @COREFLAG@ @TDEFINES@ \
- $(CSEARCH) $(CSWITCHES) $(HAVEVECS) @INCINTL@
- @PLUGINS_TRUE@LIBDL = @lt_cv_dlopen_libs@
|