remove ia64 keywords
[gentoo-zh.git] / app-i18n / zh-autoconvert / files / make-makefile-respect-compiler-references.patch
blob891454e84b4e4e6d3da39566068340ba62dc1406
1 diff --git a/Makefile b/Makefile
2 index 66e8bea..e94aa3f 100644
3 --- a/Makefile
4 +++ b/Makefile
5 @@ -1,6 +1,7 @@
7 CC=gcc
8 -CFLAG=-O2 -g -Wall -Iinclude
9 +# CFLAG=-O2 -g -Wall -Iinclude
10 +CFLAGS+= -Wall -Iinclude
11 LIBS= -Llib -lhz
13 .PHONY: all hzlib clean install-home install
14 @@ -10,9 +11,9 @@ all: autob5 autogb hzlib
15 autob5: autogb
16 rm -f autob5;ln -s autogb autob5
17 autogb:autogb.c hzlib
18 - $(CC) $(CFLAG) $(LIBS) autogb.c -lhz -o autogb
19 + $(CC) $(CFLAGS) $(LIBS) $(LDFLAGS) autogb.c -lhz -o autogb
20 autogb-static:autogb.c hzlib
21 - $(CC) $(CFLAG) autogb.c lib/libhz.a -o autogb
22 + $(CC) $(CFLAGS) $(LDFLAGS) autogb.c lib/libhz.a -o autogb
23 hzlib:
24 cd hzconvert;make
25 xchat-plugins:
26 diff --git a/hzconvert/Makefile b/hzconvert/Makefile
27 index d8d4d19..2809d0a 100644
28 --- a/hzconvert/Makefile
29 +++ b/hzconvert/Makefile
30 @@ -1,5 +1,5 @@
31 CC=gcc -I../include
32 -CFLAGS=-O2 -Wall -g -D_REENTRANT
33 +CFLAGS+=-Wall -D_REENTRANT
34 SHARED_LIB=libhz.so
35 SHARED_LIB_MAJOR=$(SHARED_LIB).0
36 SHARED_LIB_MINOR=$(SHARED_LIB_MAJOR).0
37 @@ -15,7 +15,7 @@ STATIC_OBJS=b2g.static.o b2u.static.o g2u.static.o hz2gb.static.o b2g_tables.sta
38 all: share-lib static-lib
40 share-lib: $(OBJS)
41 - gcc -fPIC -shared -Wl,-soname,$(SHARED_LIB_MAJOR) -o ../lib/$(SHARED_LIB_MINOR) $(OBJS) -ldl
42 + gcc -fPIC -shared -Wl,-soname,$(SHARED_LIB_MAJOR) $(LDFLAGS) -o ../lib/$(SHARED_LIB_MINOR) $(OBJS) -ldl
43 rm -f ../lib/$(SHARED_LIB_MAJOR)
44 rm -f ../lib/$(SHARED_LIB)
45 cd ../lib;ln -s $(SHARED_LIB_MINOR) $(SHARED_LIB_MAJOR)