summaryrefslogtreecommitdiff
path: root/security/libtomcrypt/patches/patch-ac
blob: 1ca77fc5ed36f30b3677d28dacbeceda8e2ec97f (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
$NetBSD: patch-ac,v 1.1 2011/03/10 10:02:34 drochner Exp $

--- testprof/makefile.shared.orig	2007-05-12 14:46:25.000000000 +0000
+++ testprof/makefile.shared
@@ -1,4 +1,4 @@
-CC=libtool --mode=compile gcc
+#CC=libtool --mode=compile gcc
 
 CFLAGS += -I../src/headers -I./ -Wall -W
 
@@ -17,8 +17,12 @@ endif
 
 default: $(LIBTEST)
 
-$(LIBTEST): $(OBJECTS)
-	libtool --silent --mode=link gcc $(CFLAGS) `find . -type f | grep "[.]lo" |  xargs` -o $@ -rpath $(LIBPATH) -version-info $(VERSION)
+.SUFFIXES: .lo
+.c.lo:
+	${LIBTOOL} --mode=compile ${CC} -c ${CFLAGS} $< -o $@
+
+$(LIBTEST): $(OBJECTS:.o=.lo)
+	libtool --silent --mode=link ${CC} $(CFLAGS) `find . -type f | grep "[.]lo" |  xargs` -o $@ -rpath $(LIBPATH) -version-info $(VERSION)
 
 install: $(LIBTEST)
 	libtool --silent --mode=install install -c $(LIBTEST) $(DESTDIR)$(LIBPATH)/$(LIBTEST)