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).
This commit is contained in:
Colin Walters 2012-05-03 13:40:23 -04:00
parent 749bf56917
commit 19571c7652

View File

@ -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