Merge pull request #207 from jwillemsen/jwi-bcc64xstaksize
[MPC.git] / config / pintool_static.mpb
blobc55fe0c55845187a804015a763ba73c55b8797a4
1 project : pin_static {
2   verbatim (make, top) {
3     no_hidden_visibility = 1
4   }
6   verbatim (gnuace, top) {
7     no_hidden_visibility = 1
8   }
10   verbatim (make, macros) {
11     ifeq ($(shell uname -s), Darwin)
12       CPPFLAGS += -DTARGET_MAC
13       LDFLAGS  -= -lpthread
14     else
15       CPPFLAGS += -DTARGET_LINUX
16       LDFLAGS  += -Wl,--hash-style=sysv -Wl,-Bsymbolic,$(PIN_ROOT)/intel64/runtime/pincrt/crtbegin.o $(PIN_ROOT)/intel64/runtime/pincrt/crtend.o
17       LDLIBS += -nostdlib -ldl-dynamic -lpindwarf
18     endif
19   }
21   verbatim (gnuace, macros) {
22     ifeq ($(shell uname -s), Darwin)
23       CPPFLAGS += -DTARGET_MAC
24       LDFLAGS  -= -lpthread
25     else
26       # TODO Add support for linking against gcc libraries included with Pin
27       CPPFLAGS += -DTARGET_LINUX
28       LDFLAGS  += -Wl,--hash-style=sysv -Wl,-Bsymbolic
29     endif
30   }