Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Use -Wl,--no-undefined
  • Loading branch information
falkTX committed May 12, 2016
1 parent 094cf7d commit a36bf9e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Expand Up @@ -6,13 +6,13 @@ TESTS=test_new test_cond_wait test_cond_wait_simple test_printf
all: jack_interposer.so

jack_interposer.so: jack_interposer.c checkers.c manual.c
$(CC) $< $(CFLAGS) -Wall -fPIC $(LDFLAGS) -shared -pthread -ldl -ljack -o jack_interposer.so
$(CC) $< $(CFLAGS) -Wall -fPIC $(LDFLAGS) -Wl,--no-undefined -shared -pthread -ldl -ljack -o jack_interposer.so

checkers.c: functions checker_fragment.c
./generate_checkers.pl < functions

.PHONY clean:
rm -f jack_interposer.so test_cond_wait test_cond_wait_simple || true
rm -f jack_interposer.so test_cond_wait test_cond_wait_simple

test: $(TESTS) jack_interposer.so
LD_PRELOAD=./jack_interposer.so ./test_cond_wait_simple
Expand Down

0 comments on commit a36bf9e

Please sign in to comment.