diff options
author | Vincent Sanders <vince@kyllikki.org> | 2014-11-27 16:01:44 +0000 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2014-11-27 16:01:44 +0000 |
commit | 2b03e4ea2f63bff82fb7caae455533bb9045bfbf (patch) | |
tree | 2f5450ed9e2df6f31f6617b05ea3179d7c8ce1be /Makefile | |
parent | 75106261b152936051bc06e3ecd0eecc4d038ea0 (diff) | |
download | libnsutils-2b03e4ea2f63bff82fb7caae455533bb9045bfbf.tar.gz libnsutils-2b03e4ea2f63bff82fb7caae455533bb9045bfbf.tar.bz2 |
Make use of buildsystem REQUIRED_LIBS to add -lrt when required
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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) |