2007-06-05 14:30:56 +00:00
|
|
|
---
|
2008-10-11 22:24:53 +00:00
|
|
|
Makefile | 6 +++---
|
|
|
|
1 file changed, 3 insertions(+), 3 deletions(-)
|
2007-06-05 14:30:56 +00:00
|
|
|
|
2009-08-04 22:04:05 +00:00
|
|
|
--- a/Makefile
|
|
|
|
+++ b/Makefile
|
|
|
|
@@ -4,10 +4,10 @@ VERSION=1.3.3
|
|
|
|
DATE=20 April 2009
|
2007-02-05 14:40:30 +00:00
|
|
|
|
|
|
|
CC = gcc
|
|
|
|
-CFLAGS = -g -O2 -Wall -D_FILE_OFFSET_BITS=64 \
|
2007-07-27 11:02:44 +00:00
|
|
|
+CFLAGS = $(COPTFLAGS) -g -O2 -Wall -D_FILE_OFFSET_BITS=64 \
|
2008-10-11 22:24:53 +00:00
|
|
|
-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE \
|
2007-02-05 14:40:30 +00:00
|
|
|
-DVERSION='"$(VERSION)"' -DRELEASE_DATE='"$(DATE)"'
|
2008-10-11 22:24:53 +00: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
|
2007-02-05 14:40:30 +00:00
|
|
|
|
|
|
|
ARCH := $(shell uname -m | sed -e s/i.86/x86/ -e s/sun4u/sparc64/ \
|
2008-10-11 22:24:53 +00:00
|
|
|
@@ -32,7 +32,7 @@ $(OBJ_ARCH): $(SRC_ARCH)
|
2007-06-05 14:30:56 +00:00
|
|
|
$(CC) $(CFLAGS_ARCH) -c -o ./$@ ./$(@:.o=.c)
|
|
|
|
|
|
|
|
makedumpfile: $(SRC) $(OBJ_ARCH)
|
|
|
|
- $(CC) $(CFLAGS) $(OBJ_ARCH) -o $@ $< -static -ldw -lelf -lz
|
2009-03-26 00:09:19 +00:00
|
|
|
+ $(CC) $(CFLAGS) $(OBJ_ARCH) -o $@ $< -Wl,-Bstatic -ldw -lelf -Wl,-Bdynamic -lz
|
2008-10-11 22:24:53 +00:00
|
|
|
gzip -c ./makedumpfile.8 > ./makedumpfile.8.gz
|
2007-06-05 14:30:56 +00:00
|
|
|
|
|
|
|
clean:
|