Skip to content

Commit

Permalink
Make sure .eh_frame section is generated
Browse files Browse the repository at this point in the history
So that libunwind can correctly unwind.
  • Loading branch information
yuyichao committed Feb 10, 2016
1 parent 086ac63 commit b005233
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Make.inc
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,8 @@ endif
CC := $(CROSS_COMPILE)gcc
CXX := $(CROSS_COMPILE)g++
JCFLAGS := -std=gnu99 -pipe $(fPIC) -fno-strict-aliasing -D_FILE_OFFSET_BITS=64
JCPPFLAGS :=
# AArch64 needs this flag to generate the .eh_frame used by libunwind
JCPPFLAGS := -fasynchronous-unwind-tables
JCXXFLAGS := -pipe $(fPIC) -fno-rtti
ifneq ($(OS), WINNT)
# Do no enable on windows to avoid warnings from libuv.
Expand All @@ -352,7 +353,8 @@ ifeq ($(USECLANG),1)
CC := $(CROSS_COMPILE)clang
CXX := $(CROSS_COMPILE)clang++
JCFLAGS := -pipe $(fPIC) -fno-strict-aliasing -D_FILE_OFFSET_BITS=64
JCPPFLAGS :=
# AArch64 needs this flag to generate the .eh_frame used by libunwind
JCPPFLAGS := -fasynchronous-unwind-tables
JCXXFLAGS := -pipe $(fPIC) -fno-rtti -pedantic
DEBUGFLAGS := -O0 -g -DJL_DEBUG_BUILD -fstack-protector-all
SHIPFLAGS := -O3 -g
Expand Down

0 comments on commit b005233

Please sign in to comment.