Commit fb6535e4 authored by Daan Vreeken [PA4DAN]'s avatar Daan Vreeken [PA4DAN]
Browse files

Committer: Daan Vreeken [PA4DAN] <pa4dan@RacebeestV3.VEHosting.LAN>

	modified:   controller/controller/build.mk

Don't try to link against 'libdl' on FreeBSD. dlopen() and friends are in libc
there.
parent 11a7060e
......@@ -19,7 +19,13 @@ CONTROLLER_OBJS := $(CONTROLLER_SRCS:.c=.lo)
$(CONTROLLER_OBJS): CFLAGS += -O3 -Wall -pthread
$(LIBDIR)/libcontroller.la: libshell.la libcommand.la libtrace.la
$(LIBDIR)/libcontroller.la_LDFLAGS += -lshell -ldl -pthread -lrt -lcommand -ltrace
$(LIBDIR)/libcontroller.la_LDFLAGS += -lshell -pthread -lrt -lcommand -ltrace
ifneq ($(OS), FreeBSD)
BLOCKS+= \
$(LIBDIR)/libcontroller.la_LDFLAGS += -ldl
endif
$(LIBDIR)/libcontroller.la: $(CONTROLLER_OBJS)
$(LIB_LINK)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment