2007-06-05 16:30:56 +02:00
|
|
|
---
|
2012-06-18 19:10:04 +02:00
|
|
|
Makefile | 8 ++++----
|
|
|
|
1 file changed, 4 insertions(+), 4 deletions(-)
|
2007-06-05 16:30:56 +02:00
|
|
|
|
2009-08-05 00:04:05 +02:00
|
|
|
--- a/Makefile
|
|
|
|
+++ b/Makefile
|
2012-06-18 19:10:04 +02:00
|
|
|
@@ -8,10 +8,10 @@ ifeq ($(strip $CC),)
|
2007-02-05 15:40:30 +01:00
|
|
|
CC = gcc
|
2012-06-18 19:10:04 +02:00
|
|
|
endif
|
|
|
|
|
2007-02-05 15:40:30 +01:00
|
|
|
-CFLAGS = -g -O2 -Wall -D_FILE_OFFSET_BITS=64 \
|
2007-07-27 13:02:44 +02:00
|
|
|
+CFLAGS = $(COPTFLAGS) -g -O2 -Wall -D_FILE_OFFSET_BITS=64 \
|
2008-10-12 00:24:53 +02:00
|
|
|
-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE \
|
2007-02-05 15:40:30 +01:00
|
|
|
-DVERSION='"$(VERSION)"' -DRELEASE_DATE='"$(DATE)"'
|
2008-10-12 00:24:53 +02:00
|
|
|
-CFLAGS_ARCH = -g -O2 -Wall -D_FILE_OFFSET_BITS=64 \
|
|
|
|
+CFLAGS_ARCH = $(COPTFLAGS) -g -O2 -Wall -D_FILE_OFFSET_BITS=64 \
|
|
|
|
-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
|
2011-11-02 23:55:52 +01:00
|
|
|
# LDFLAGS = -L/usr/local/lib -I/usr/local/include
|
2007-02-05 15:40:30 +01:00
|
|
|
|
2012-06-18 19:10:04 +02:00
|
|
|
@@ -45,9 +45,9 @@ OBJ_PART = print_info.o dwarf_info.o elf
|
|
|
|
SRC_ARCH = arch/arm.c arch/x86.c arch/x86_64.c arch/ia64.c arch/ppc64.c arch/s390x.c arch/ppc.c
|
|
|
|
OBJ_ARCH = arch/arm.o arch/x86.o arch/x86_64.o arch/ia64.o arch/ppc64.o arch/s390x.o arch/ppc.o
|
|
|
|
|
|
|
|
-LIBS = -ldw -lbz2 -lebl -ldl -lelf -lz
|
|
|
|
+LIBS = -ldw -lebl -lelf $(LIBS_STATIC) -Wl,-Bdynamic -ldl -lz $(LIBS_DYNAMIC)
|
|
|
|
ifneq ($(LINKTYPE), dynamic)
|
|
|
|
-LIBS := -static $(LIBS)
|
|
|
|
+LIBS := -Wl,-Bstatic $(LIBS)
|
|
|
|
endif
|
2007-06-05 16:30:56 +02:00
|
|
|
|
2012-06-18 19:10:04 +02:00
|
|
|
ifeq ($(USELZO), on)
|