summaryrefslogtreecommitdiff
path: root/packages/micro-emacs/micro-emacs-20040301/zaurus_make.patch
blob: f6994cceb7d1b3c1971284373635eac9aa3a4ee4 (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
#

--- me040301/src/zaurus.gmk~zaurus_make	2004-03-27 10:02:09.000000000 -0700
+++ me040301/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)