Sophie

Sophie

distrib > Mageia > 6 > armv7hl > media > core-updates-src > by-pkgid > 75ee5635d6fdab9feb7fbf7c94711d97 > files > 6

libtomcrypt-1.17-11.1.mga6.src.rpm

Makefile fixes to allow the test suite to compile

Index: libtomcrypt-1.17/makefile.shared
===================================================================
--- libtomcrypt-1.17/makefile.shared
+++ libtomcrypt-1.17/makefile.shared	2014-10-05 02:07:04.284353135 +0200
@@ -17,7 +17,7 @@
 endif
 
 # Compilation flags. Note the += does not write over the user's CFLAGS!
-CFLAGS += -c -I./src/headers/ -Wall -Wsign-compare -W -Wshadow -DLTC_SOURCE
+CFLAGS += -c -I./testprof/ -I./src/headers/ -Wall -Wsign-compare -W -Wshadow -DLTC_SOURCE
 
 # additional warnings (newer GCC 3.4 and higher)
 ifdef GCC_34
@@ -272,7 +272,7 @@
 	gcc -o tv_gen $(TVS) -ltomcrypt $(EXTRALIBS)
 
 test: library testprof/$(LIBTEST) $(TESTS)
-	gcc -o $(TEST) $(TESTS) -ltomcrypt_prof -ltomcrypt $(EXTRALIBS)
+	libtool --silent --mode=link gcc $(LDFLAGS) -o $(TEST) $(patsubst %.o,%.lo,$(TESTS)) -Ltestprof -ltomcrypt_prof -ltomcrypt $(EXTRALIBS)
 
 timing: library testprof/$(LIBTEST) $(TIMINGS)
 	gcc -o $(TIMING) $(TIMINGS) -ltomcrypt_prof -ltomcrypt $(EXTRALIBS)