Don't try to link in dl library on FreeBSD.

dev/git-series/gccdum
Iain Buclaw 9 years ago
parent 870355a530
commit 8bd39349f1

@ -1,7 +1,13 @@
ifeq (FreeBSD,$(shell uname -s))
LDL :=
else
LDL := -ldl
endif
all: libpreload.so
libpreload.so: preload.c
$(CC) -std=c99 -shared -O1 -fPIC $^ -o $@ -ldl
$(CC) -std=c99 -shared -O1 -fPIC $^ -o $@ $(LDL)
.PHONY: test clean
test: libpreload.so

Loading…
Cancel
Save