projects
/
ldtrace
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add size optimization options
[ldtrace]
/
Makefile
diff --git
a/Makefile
b/Makefile
index
a1de594
..
a78a1ff
100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-1,12
+1,15
@@
CFLAGS=-std=c99 -Os -g
CFLAGS=-std=c99 -Os -g
+#CFLAGS+=-fomit-frame-pointer -fno-unwind-tables -fno-asynchronous-unwind-tables
LDFLAGS=-g
CC=musl-gcc
LDFLAGS=-g
CC=musl-gcc
-all: wrap.so hello
+all: wrap.so hello
stress
hello: hello.o
hello: hello.o
+stress: stress.o
wrap.o: head.h func.h
wrap.so: wrap.o
$(CC) $(LDFLAGS) -shared -o $@ $< -ldl -lm -lrt -lcrypt
clean:
wrap.o: head.h func.h
wrap.so: wrap.o
$(CC) $(LDFLAGS) -shared -o $@ $< -ldl -lm -lrt -lcrypt
clean:
- rm -f wrap.so hello *.o
+ rm -f wrap.so hello
stress
*.o
test: all
LD_PRELOAD=./wrap.so ./hello
test: all
LD_PRELOAD=./wrap.so ./hello
+ LD_PRELOAD=./wrap.so ./stress 2>&1 |wc -l