Skip to content

Commit

Permalink
Link against dynamic libs by default
Browse files Browse the repository at this point in the history
  • Loading branch information
robertswiecki committed Feb 11, 2016
1 parent 14717ca commit 00d6eca
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
2 changes: 1 addition & 1 deletion Makefile
Expand Up @@ -38,7 +38,7 @@ ifeq ($(OS),Linux)
-Wno-unknown-warning-option -funroll-loops -O2 \
-D_FILE_OFFSET_BITS=64
ARCH_LDFLAGS := -lpthread -L/usr/local/include -L/usr/include \
-lunwind-ptrace -lunwind-generic -lbfd -lopcodes -lrt
-lunwind-ptrace -lunwind-generic -lbfd -lopcodes -lrt -Bdynamic
ARCH_SRCS := $(wildcard linux/*.c)

ifeq ("$(wildcard /usr/include/bfd.h)","")
Expand Down
5 changes: 0 additions & 5 deletions linux/perf.c
Expand Up @@ -118,11 +118,6 @@ static inline void arch_perfAddBranch(uint64_t from, uint64_t to)
}
}

static inline uint64_t arch_perfGetMmap64(uint64_t off)
{
return *(uint64_t *) (perfMmapBuf + perfPageSz + off);
}

static inline void arch_perfMmapParse(void)
{
struct perf_event_mmap_page *pem = (struct perf_event_mmap_page *)perfMmapBuf;
Expand Down

0 comments on commit 00d6eca

Please sign in to comment.