summaryrefslogtreecommitdiff
path: root/libdes/libdes-4.01/cross-compile.patch
blob: 23fb5182464586899b8b63ad41aaba636c7bbe7f (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
26
27
28
29
30
31
32
33
34
35

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

--- libdes/Makefile~cross-compile	1997-01-13 18:27:30.000000000 +0100
+++ libdes/Makefile	2004-02-15 01:57:46.000000000 +0100
@@ -42,10 +42,10 @@
 #DES_ENC=asm/dx86-sol.o	# solaris format x86 
 #DES_ENC=asm/dx86bsdi.o	# bsdi format x86 
 
-LIBDIR=/usr/local/lib
-BINDIR=/usr/local/bin
-INCDIR=/usr/local/include
-MANDIR=/usr/local/man
+LIBDIR=$(DESTDIR)/usr/lib
+BINDIR=$(DESTDIR)/usr/bin
+INCDIR=$(DESTDIR)/usr/include
+MANDIR=$(DESTDIR)/usr/man
 MAN1=1
 MAN3=3
 SHELL=/bin/sh
@@ -94,10 +94,8 @@
 
 $(DLIB): $(OBJS)
 	/bin/rm -f $(DLIB)
-	ar cr $(DLIB) $(OBJS)
-	-if test -s /bin/ranlib; then /bin/ranlib $(DLIB); \
-	else if test -s /usr/bin/ranlib; then /usr/bin/ranlib $(DLIB); \
-	else exit 0; fi; fi
+	$(AR) cr $(DLIB) $(OBJS)
+	$(RANLIB) $(DLIB)
 
 des_opts: des_opts.o libdes.a
 	$(CC) $(CFLAGS) -o des_opts des_opts.o libdes.a