Lines 2-7
AUTOMAKE_OPTIONS = foreign
Link Here
|
2 |
|
2 |
|
3 |
lib_LTLIBRARIES = libsandbox.la |
3 |
lib_LTLIBRARIES = libsandbox.la |
4 |
bin_PROGRAMS = sandbox |
4 |
bin_PROGRAMS = sandbox |
|
|
5 |
noinst_LTLIBRARIES = libptmalloc3.la \ |
6 |
libmalloc.la |
7 |
|
8 |
ptmalloc_srcdir=$(top_srcdir)/../ptmalloc3 |
5 |
|
9 |
|
6 |
AM_CPPFLAGS = \ |
10 |
AM_CPPFLAGS = \ |
7 |
-DPIC -fPIC -D_REENTRANT \ |
11 |
-DPIC -fPIC -D_REENTRANT \ |
Lines 11-22
AM_CPPFLAGS = \
Link Here
|
11 |
|
15 |
|
12 |
LOCAL_INCLUDES = $(top_srcdir)/localdecls.h |
16 |
LOCAL_INCLUDES = $(top_srcdir)/localdecls.h |
13 |
|
17 |
|
|
|
18 |
libmalloc_la_SOURCES = $(ptmalloc_srcdir)/malloc.c |
19 |
libmalloc_la_CPPFLAGS = -D_GNU_SOURCE \ |
20 |
-DHAVE_MORECORE=0 \ |
21 |
-DONLY_MSPACES -DUSE_LOCKS=0 |
22 |
libptmalloc3_la_SOURCES = $(ptmalloc_srcdir)/ptmalloc3.c \ |
23 |
$(ptmalloc_srcdir)/malloc-2.8.3.h \ |
24 |
$(ptmalloc_srcdir)/malloc-private.h \ |
25 |
$(ptmalloc_srcdir)/sysdeps/pthread/malloc-machine.h \ |
26 |
$(ptmalloc_srcdir)/sysdeps/pthread/thread-st.h \ |
27 |
$(ptmalloc_srcdir)/sysdeps/generic/malloc-machine.h \ |
28 |
$(ptmalloc_srcdir)/sysdeps/generic/atomic.h \ |
29 |
$(ptmalloc_srcdir)/sysdeps/generic/thread-st.h |
30 |
libptmalloc3_la_CPPFLAGS = -D_GNU_SOURCE \ |
31 |
-DMSPACES=1 \ |
32 |
-DUSE_TSD_DATA_HACK -DTHREAD_STATS=1 \ |
33 |
-I$(ptmalloc_srcdir) \ |
34 |
-I$(ptmalloc_srcdir)/sysdeps/pthread -I$(ptmalloc_srcdir)/sysdeps/generic |
35 |
libptmalloc3_la_LIBADD = -lpthread \ |
36 |
libmalloc.la |
37 |
|
14 |
# We need -fexceptions here, else we do not catch exceptions |
38 |
# We need -fexceptions here, else we do not catch exceptions |
15 |
# (nptl/tst-cancelx4.c in glibc among others fails for wrapped functions). |
39 |
# (nptl/tst-cancelx4.c in glibc among others fails for wrapped functions). |
16 |
libsandbox_la_CFLAGS = -fexceptions |
40 |
libsandbox_la_CFLAGS = -fexceptions |
17 |
# Do not add -nostdlib or -nostartfiles, as then our constructor |
41 |
# Do not add -nostdlib or -nostartfiles, as then our constructor |
18 |
# and destructor will not be executed ... |
42 |
# and destructor will not be executed ... |
19 |
libsandbox_la_LIBADD = -lc $(LIBDL) |
43 |
libsandbox_la_LIBADD = libptmalloc3.la \ |
|
|
44 |
-lc $(LIBDL) |
20 |
libsandbox_la_LDFLAGS = \ |
45 |
libsandbox_la_LDFLAGS = \ |
21 |
-nodefaultlibs \ |
46 |
-nodefaultlibs \ |
22 |
-Wl,--version-script,libsandbox.map |
47 |
-Wl,--version-script,libsandbox.map |
Lines 32-37
sandbox_SOURCES = \
Link Here
|
32 |
sandbox.h \ |
57 |
sandbox.h \ |
33 |
sandbox_utils.c \ |
58 |
sandbox_utils.c \ |
34 |
$(LOCAL_INCLUDES) |
59 |
$(LOCAL_INCLUDES) |
|
|
60 |
sandbox_LDADD = libptmalloc3.la |
35 |
|
61 |
|
36 |
libsandbox.c: libsandbox.map symbols.h |
62 |
libsandbox.c: libsandbox.map symbols.h |
37 |
|
63 |
|