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