diff options
author | Wolfgang Hommel <wolf@code-wizards.com> | 2013-10-18 17:45:57 +0200 |
---|---|---|
committer | Wolfgang Hommel <wolf@code-wizards.com> | 2013-10-18 17:45:57 +0200 |
commit | 76edab7837d664c60abe0ae0d6ea58c42c661110 (patch) | |
tree | 95a2a45e387d463e0c39577dedc612e7c688931d | |
parent | 3ac3286356fb434b9c89c1a480031851a1008f04 (diff) | |
download | faketime-ng-76edab7837d664c60abe0ae0d6ea58c42c661110.tar.gz |
Fix -lrt issues in Makefile
-rw-r--r-- | src/Makefile | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/Makefile b/src/Makefile index 3325df8..51634b0 100644 --- a/src/Makefile +++ b/src/Makefile @@ -69,8 +69,9 @@ LIBDIRNAME ?= /lib/faketime CFLAGS += -std=gnu99 -Wall -Wextra -Werror -DFAKE_STAT -DFAKE_SLEEP -DFAKE_TIMERS -DFAKE_INTERNAL_CALLS -fPIC -DPREFIX='"'$(PREFIX)'"' -DLIBDIRNAME='"'$(LIBDIRNAME)'"' LIB_LDFLAGS += -shared -LDFLAGS += -Wl,--version-script=libfaketime.map -lpthread -lrt -LDADD += -ldl -lm +LDFLAGS += -Wl,--version-script=libfaketime.map -lpthread +LDADD += -ldl -lm -lrt +BIN_LDFLAGS += -lrt SRC = libfaketime.c LIBS_OBJ = libfaketime.o libfaketimeMT.o @@ -90,7 +91,7 @@ ${LIBS_OBJ}: libfaketime.c ${CC} -o $@ -Wl,-soname,$@ ${LDFLAGS} ${LIB_LDFLAGS} $< ${LDADD} ${BINS}: faketime.c - ${CC} -o $@ ${CFLAGS} ${EXTRA_FLAGS} $< ${LDFLAGS} + ${CC} -o $@ ${CFLAGS} ${EXTRA_FLAGS} $< ${LDFLAGS} ${BIN_LDFLAGS} clean: @rm -f ${LIBS_OBJ} ${LIBS} ${BINS} |