forked from pool/libmicro
5cee7b3a87
- libmicro-gcc14.patch: fix build with gcc14 OBS-URL: https://build.opensuse.org/request/show/1191053 OBS-URL: https://build.opensuse.org/package/show/benchmark/libmicro?expand=0&rev=20
14 lines
581 B
Diff
14 lines
581 B
Diff
Index: Makefile.com
|
|
===================================================================
|
|
--- Makefile.com.orig
|
|
+++ Makefile.com
|
|
@@ -107,7 +107,7 @@ tattle: ../tattle.c libmicro.a
|
|
echo "char compiler_version[] = \""`$(COMPILER_VERSION_CMD)`"\";" > tattle.h
|
|
echo "char CC[] = \""$(CC)"\";" >> tattle.h
|
|
echo "char extra_compiler_flags[] = \""$(extra_CFLAGS)"\";" >> tattle.h
|
|
- $(CC) -o tattle $(CFLAGS) -I. ../tattle.c libmicro.a -lrt -lm
|
|
+ $(CC) -o tattle $(CFLAGS) -I. ../tattle.c libmicro.a -lrt -lm -lpthread
|
|
|
|
$(ELIDED_BENCHMARKS): ../elided.c
|
|
$(CC) -o $(@) ../elided.c
|