--- libtomcrypt-1.17/testprof/makefile.shared.orig 2007-05-12 16:46:25.000000000 +0200 +++ libtomcrypt-1.17/testprof/makefile.shared 2013-05-19 15:00:01.416666385 +0200 @@ -1,4 +1,5 @@ -CC=libtool --mode=compile gcc +CC=libtool --mode=compile --tag=CC gcc +CCLD=libtool --mode=link --tag=CC gcc CFLAGS += -I../src/headers -I./ -Wall -W @@ -18,7 +19,7 @@ default: $(LIBTEST) $(LIBTEST): $(OBJECTS) - libtool --silent --mode=link gcc $(CFLAGS) `find . -type f | grep "[.]lo" | xargs` -o $@ -rpath $(LIBPATH) -version-info $(VERSION) + $(CCLD) $(CFLAGS) `find . -type f | grep "[.]lo" | xargs` -o $@ -rpath $(LIBPATH) -version-info $(VERSION) ../libtomcrypt.la install: $(LIBTEST) libtool --silent --mode=install install -c $(LIBTEST) $(DESTDIR)$(LIBPATH)/$(LIBTEST) --- libtomcrypt-1.17/makefile.shared.orig 2007-05-12 16:46:25.000000000 +0200 +++ libtomcrypt-1.17/makefile.shared 2013-05-19 15:00:57.236664043 +0200 @@ -10,6 +10,7 @@ # Compiler and Linker Names CC=libtool --mode=compile --tag=CC gcc +CCLD=libtool --mode=link --tag=CC gcc # ranlib tools ifndef RANLIB @@ -242,20 +242,22 @@ src/hashes/sha2/sha256.o: src/hashes/sha2/sha256.c src/hashes/sha2/sha224.c #This rule makes the libtomcrypt library. +all: library testprof/$(LIBTEST) + library: $(LIBNAME) -testprof/$(LIBTEST): +testprof/$(LIBTEST): $(LIBNAME) cd testprof ; CFLAGS="$(CFLAGS)" GROUP=$(GROUP) USER=$(USER) VERSION=$(VERSION) LIBPATH=$(LIBPATH) LIBTEST=$(LIBTEST) LIBTEST_S=$(LIBTEST_S) make -f makefile.shared objs: $(OBJECTS) -$(LIBNAME): $(OBJECTS) testprof/$(LIBTEST) - libtool --silent --mode=link gcc $(CFLAGS) `find . -type f | grep "[.]lo" | grep "src/" | xargs` $(EXTRALIBS) -o $(LIBNAME) -rpath $(LIBPATH) -version-info $(VERSION) +$(LIBNAME): $(OBJECTS) + $(CCLD) $(CFLAGS) `find . -type f | grep "[.]lo" | grep "src/" | xargs` $(EXTRALIBS) -o $(LIBNAME) -rpath $(LIBPATH) -version-info $(VERSION) install: $(LIBNAME) install -d -g $(GROUP) -o $(USER) $(DESTDIR)$(LIBPATH) - cd testprof ; CFLAGS="$(CFLAGS)" GROUP=$(GROUP) USER=$(USER) VERSION=$(VERSION) LIBPATH=$(LIBPATH) LIBTEST=$(LIBTEST) LIBTEST_S=$(LIBTEST_S) DESTDIR=$(DESTDIR) make -f makefile.shared install libtool --silent --mode=install install -c libtomcrypt.la $(DESTDIR)$(LIBPATH)/libtomcrypt.la + cd testprof ; CFLAGS="$(CFLAGS)" GROUP=$(GROUP) USER=$(USER) VERSION=$(VERSION) LIBPATH=$(LIBPATH) LIBTEST=$(LIBTEST) LIBTEST_S=$(LIBTEST_S) DESTDIR=$(DESTDIR) make -f makefile.shared install install -d -g $(GROUP) -o $(USER) $(DESTDIR)$(INCPATH) install -g $(GROUP) -o $(USER) $(HEADERS) $(DESTDIR)$(INCPATH)