citrun

watch C/C++ source code execute
Log | Files | Refs | LICENSE

commit da06da573d534a2900d18437219ff9841b9593a1
parent 51b04695cb81670905902cd81b53254714ff10a7
Author: kyle <kyle@getaddrinfo.net>
Date:   Sun,  1 Nov 2015 15:14:18 -0700

runtime: use archive object instead of .so

Diffstat:
Mruntime/Makefile | 8++++++--
Mruntime/runtime.c | 2+-
2 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/runtime/Makefile b/runtime/Makefile @@ -1,10 +1,14 @@ +.ifdef SCV_PATH +error_SCV_PATH +.endif + CFLAGS += -fPIC -pthread -LIB = libruntime.so +LIB = libruntime.a SRCS = runtime.c OBJS = $(SRCS:c=o) $(LIB): $(OBJS) - $(CC) -shared -o $(LIB) $(OBJS) + $(AR) cr $(LIB) $(OBJS) clean: rm -f $(OBJS) $(LIB) diff --git a/runtime/runtime.c b/runtime/runtime.c @@ -1,7 +1,7 @@ #include <pthread.h> #include <stdio.h> -/* these symbols are guaranteed to exist because of instrumentation */ +/* guaranteed to exist at link time because of instrumentation */ extern unsigned int lines[]; extern int size;