… | |
… | |
13 | |
13 | |
14 | # We need -fexceptions here, else we do not catch exceptions |
14 | # We need -fexceptions here, else we do not catch exceptions |
15 | # (nptl/tst-cancelx4.c in glibc among others fails for wrapped functions). |
15 | # (nptl/tst-cancelx4.c in glibc among others fails for wrapped functions). |
16 | libsandbox_la_CFLAGS = -fexceptions |
16 | libsandbox_la_CFLAGS = -fexceptions |
17 | # Could use the following to libsandbox_la_LIBADD, but then libtool links it |
17 | # Could use the following to libsandbox_la_LIBADD, but then libtool links it |
18 | # with --whole-archive: |
18 | # with --whole-archive, and libsandbox.so increase with a few KB in size: |
19 | # $(top_builddir)/libsbutil/libsbutil.la |
19 | # $(top_builddir)/libsbutil/libsbutil.la |
20 | libsandbox_la_LIBSBOBJS = $(wildcard $(top_builddir)/libsbutil/*.lo) |
20 | libsandbox_la_LIBSBLIB = $(top_builddir)/libsbutil/.libs/libsbutil.a |
21 | libsandbox_la_LIBADD = \ |
21 | libsandbox_la_LIBADD = \ |
22 | -lc $(LIBDL) \ |
22 | -lc $(LIBDL) \ |
23 | $(libsandbox_la_LIBSBOBJS) |
23 | $(libsandbox_la_LIBSBLIB) |
24 | # Do not add -nostdlib or -nostartfiles, as then our constructor |
24 | # Do not add -nostdlib or -nostartfiles, as then our constructor |
25 | # and destructor will not be executed ... |
25 | # and destructor will not be executed ... |
26 | libsandbox_la_LDFLAGS = \ |
26 | libsandbox_la_LDFLAGS = \ |
27 | -nodefaultlibs \ |
27 | -nodefaultlibs \ |
28 | -Wl,--version-script,libsandbox.map |
28 | -Wl,--version-script,libsandbox.map |