Skip to content

Commit 0646f90

Browse files
author
Baptiste Lepers
committed
Fix for gentoo compilation
1 parent 592e861 commit 0646f90

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ OBJECTS = ./utils/symbols.o \
3333

3434
VERBOSE ?= n
3535
is_error := n
36-
has_bfd := $(shell sh -c "(echo '\#include <bfd.h>'; echo 'int main(void) { bfd_demangle(0, 0, 0); return 0; }') | $(CC) -x c - -lbfd 2>&1 && rm a.out && echo y")
36+
has_bfd := $(shell sh -c "(echo '\#define PACKAGE'; echo '\#include <bfd.h>'; echo 'int main(void) { bfd_demangle(0, 0, 0); return 0; }') | $(CC) -x c - -lbfd 2>&1 && rm a.out && echo y")
3737
ifneq ($(has_bfd),y)
3838
is_error := y
3939
ifeq ($(VERBOSE), n)

utils/symbols.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
2323
#include <gelf.h>
2424
#include <elf.h>
2525
#include <fcntl.h>
26+
#define PACKAGE //hack for Gentoo
2627
#include <bfd.h>
2728
#include <limits.h>
2829

0 commit comments

Comments
 (0)