upgrade to 1.5.6 OBS-URL: https://build.opensuse.org/request/show/232944 OBS-URL: https://build.opensuse.org/package/show/Kernel:kdump/makedumpfile?expand=0&rev=83
32 lines
1.0 KiB
Diff
32 lines
1.0 KiB
Diff
---
|
|
Makefile | 8 ++++----
|
|
1 file changed, 4 insertions(+), 4 deletions(-)
|
|
|
|
--- a/Makefile
|
|
+++ b/Makefile
|
|
@@ -8,10 +8,10 @@ ifeq ($(strip $CC),)
|
|
CC = gcc
|
|
endif
|
|
|
|
-CFLAGS = -g -O2 -Wall -D_FILE_OFFSET_BITS=64 \
|
|
+CFLAGS = $(COPTFLAGS) -g -O2 -Wall -D_FILE_OFFSET_BITS=64 \
|
|
-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE \
|
|
-DVERSION='"$(VERSION)"' -DRELEASE_DATE='"$(DATE)"'
|
|
-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
|
|
# LDFLAGS = -L/usr/local/lib -I/usr/local/include
|
|
|
|
@@ -51,9 +51,9 @@ OBJ_PART=$(patsubst %.c,%.o,$(SRC_PART))
|
|
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=$(patsubst %.c,%.o,$(SRC_ARCH))
|
|
|
|
-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
|
|
|
|
ifeq ($(USELZO), on)
|