From 19571c76521b1446fa5433c6ae87d30690e39161 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Thu, 3 May 2012 13:40:23 -0400 Subject: [PATCH] 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). --- Makefile-libostree.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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