summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2012-05-03 13:40:23 -0400
committerColin Walters <walters@verbum.org>2012-05-03 13:40:23 -0400
commit19571c76521b1446fa5433c6ae87d30690e39161 (patch)
tree70be62f708d90db66a5ccd68f628b4a6b41e91bb
parent749bf569170f37f0fbf245d06eb8ddc3574579b8 (diff)
downloadostree-19571c76521b1446fa5433c6ae87d30690e39161.tar.gz
build: Link with -Bsymbolic-functions
Avoids indirecting through PLT for internal calls, at the cost that we can't use LD_PRELOAD to override internal functions (but we never really want that, use a debugger).
-rw-r--r--Makefile-libostree.am2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile-libostree.am b/Makefile-libostree.am
index 6eb27e08..af5a9af9 100644
--- a/Makefile-libostree.am
+++ b/Makefile-libostree.am
@@ -47,7 +47,7 @@ libostree_la_SOURCES += src/libostree/ostree-libarchive-input-stream.h \
endif
libostree_la_CFLAGS = $(AM_CFLAGS) -I$(srcdir)/src/libotutil -I$(srcdir)/src/libostree -DLOCALEDIR=\"$(datadir)/locale\" $(OT_DEP_GIO_UNIX_CFLAGS)
-libostree_la_LDFLAGS = -avoid-version
+libostree_la_LDFLAGS = -avoid-version -Bsymbolic-functions
libostree_la_LIBADD = libotutil.la $(OT_DEP_GIO_UNIX_LIBS)
if USE_LIBARCHIVE