Skip to content

Commit

Permalink
deps/libunwind: fix ppc64 build failure
Browse files Browse the repository at this point in the history
  • Loading branch information
nolta committed Jul 13, 2012
1 parent 62afe7b commit d018083
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion deps/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -688,14 +688,19 @@ LIBUNWIND_TARGET_OBJ =
LIBUNWIND_TARGET_SOURCE =
endif

LIBUNWIND_CFLAGS = $(CFLAGS) -U_FORTIFY_SOURCE $(fPIC)
ifeq ($(ARCH), ppc64)
LIBUNWIND_CFLAGS += -m64
endif

compile-unwind: $(LIBUNWIND_TARGET_SOURCE)
install-unwind: $(LIBUNWIND_TARGET_OBJ)

libunwind-$(UNWIND_VER).tar.gz:
$(WGET) https://savannah.spinellicreations.com/libunwind/libunwind-$(UNWIND_VER).tar.gz
libunwind-$(UNWIND_VER)/Makefile: libunwind-$(UNWIND_VER).tar.gz
tar xfz $<
cd libunwind-$(UNWIND_VER) && ./configure CFLAGS="$(CFLAGS) -U_FORTIFY_SOURCE $(fPIC)" --prefix=$(abspath $(USR)) CC="$(CC)" CXX="$(CXX)"
cd libunwind-$(UNWIND_VER) && ./configure CFLAGS="$(LIBUNWIND_CFLAGS)" --prefix=$(abspath $(USR)) CC="$(CC)" CXX="$(CXX)"

$(LIBUNWIND_TARGET_SOURCE): libunwind-$(UNWIND_VER)/Makefile
cd libunwind-$(UNWIND_VER) && $(MAKE)
Expand Down

0 comments on commit d018083

Please sign in to comment.