Upgrade to lukka/run-vcpkg@v5
[MPC.git] / config / pintool_static.mpb
blob6ce20c03a392336b2802533b18a75d4bbcef99a8
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  += -lpindwarf -lpinpthread
14       LDFLAGS  -= -lpthread
15     else
16       CPPFLAGS += -DTARGET_LINUX
17       LDFLAGS  += -Wl,--hash-style=sysv -Wl,-Bsymbolic
18       LDFLAGS  -= -ldl -lpthread
19       LDLIBS   += -lpindwarf -ldl
20     endif
21   }
23   verbatim (gnuace, macros) {
24     ifeq ($(shell uname -s), Darwin)
25       CPPFLAGS += -DTARGET_MAC
26       LDFLAGS  += -lpindwarf -lpinpthread
27       LDFLAGS  -= -lpthread
28     else
29       # TODO Add support for linking against gcc libraries included with Pin
30       CPPFLAGS += -DTARGET_LINUX
31       LIBS     += -lpindwarf
32       LDFLAGS  += -Wl,--hash-style=sysv -Wl,-Bsymbolic
33     endif
34   }