summaryrefslogtreecommitdiff
path: root/cpp/options.mk
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/options.mk')
-rw-r--r--cpp/options.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/options.mk b/cpp/options.mk
index f624a397b3..351f4bdefd 100644
--- a/cpp/options.mk
+++ b/cpp/options.mk
@@ -36,12 +36,12 @@ endif
ifdef USE_APR
PLATFORM := apr
IGNORE := posix
-CXXFLAGS := $(CXXFLAGS) -DUSE_APR -I/usr/local/apr/include
+CXXFLAGS := $(CXXFLAGS) -DUSE_APR -I$(shell apr-1-config --includedir)
LDFLAGS := $(LDFLAGS) -L/usr/local/apr/lib -lapr-1
else
PLATFORM := posix
IGNORE := apr
-LDFLAGS := $(LDFLAGS) -lpthread -lrt
+LDFLAGS := $(LDFLAGS) -lpthread -lrt -ldl
endif
## Build directories.