summaryrefslogtreecommitdiff
path: root/packages/micro-emacs/micro-emacs-20060909/zaurus_make.patch
blob: eeb76964de386423eb971cbdf8eefff0ad6e6c23 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25

#
# Patch managed by http://www.mn-logistik.de/unsupported/pxa250/patcher
#

--- me060909/src/zaurus.gmk~zaurus_make	2004-03-27 10:02:09.000000000 -0700
+++ me060909/src/zaurus.gmk	2004-03-29 17:23:12.000000000 -0700
@@ -67,7 +67,7 @@
 # termcap
 test = $(shell echo "main() { printf(\"HW\n\"); }" > _t.c ; $(LD) $(LDFLAGS) -o /dev/null -ltermcap _t.c 2>&1 ; rm _t.c)
 ifneq "$(strip $(test))" ""
-CONSOLE_LIBS  = -lncurses
+CONSOLE_LIBS  = -lncurses -lgcc -lm
 else
 CONSOLE_LIBS  = -ltermcap
 endif
@@ -163,7 +163,7 @@
 
 mec:	$(OBJ_C)
 	$(RM) $@
-	$(LD) $(LDFLAGS) $(LDOPTIMISE) -o $@ $(OBJ_C) $(CONSOLE_LIBS) $(LIBS)
+	$(CC) $(LDFLAGS) $(LDOPTIMISE) -o $@ $(OBJ_C) $(CONSOLE_LIBS) $(LIBS)
 	$(STRIP) $@
 
 mew:	$(OBJ_W)