summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 7d3f128..b6a1448 100644
--- a/Makefile
+++ b/Makefile
@@ -25,6 +25,15 @@ else
endif
CFLAGS := $(CFLAGS) -D_POSIX_C_SOURCE=200809L
+REQUIRED_LIBS := nsutils
+
+# Strictly the requirement for rt is dependant on both the clib and if
+# the build is using rt features like clock_gettime() but this check
+# will suffice
+ifeq ($(BUILD),x86_64-linux-gnu)
+ REQUIRED_LIBS := $(REQUIRED_LIBS) rt
+endif
+
TESTCFLAGGS := -g -O2
TESTLDFLAGS := -lm -l$(COMPONENT) $(TESTLDFLAGS)