summaryrefslogtreecommitdiff
path: root/src/Makefile
diff options
context:
space:
mode:
authorBalint Reczey <balint@balintreczey.hu>2013-09-30 16:36:13 +0200
committerWolfgang Hommel <wolfgang.hommel@lrz.de>2013-09-30 16:36:13 +0200
commit50c6ad4dc273e0cf0b11bdec225366e6a8ce1ae4 (patch)
tree4fa591143ce5be72c53db768dc1308048a9b1907 /src/Makefile
parent27468e804db0c96b62bf0b1e8468bdc3b7c5f59b (diff)
downloadlibfaketime-50c6ad4dc273e0cf0b11bdec225366e6a8ce1ae4.tar.gz
Provide timer related functions compatible with GLIBC 2.2 and >= 2.3.3 [pr32 @8615959]
Diffstat (limited to 'src/Makefile')
-rw-r--r--src/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Makefile b/src/Makefile
index 6655888..b167dad 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -52,7 +52,7 @@ PREFIX ?= /usr/local
CFLAGS += -std=gnu99 -Wall -DFAKE_STAT -DFAKE_SLEEP -DFAKE_TIMERS -DFAKE_INTERNAL_CALLS -fPIC -DPREFIX='"'$(PREFIX)'"'
LIB_LDFLAGS += -shared
-LDFLAGS += -lrt
+LDFLAGS += -lrt -Wl,--version-script=libfaketime.map
LDADD += -ldl -lm -lpthread
SRC = libfaketime.c
@@ -69,7 +69,7 @@ faketimeMT.o: EXTRA_FLAGS := -DPTHREAD -DPTHREAD_SINGLETHREADED_TIME
${LIBS_OBJ}: libfaketime.c
${CC} -o $@ -c ${CFLAGS} ${EXTRA_FLAGS} $<
-%.so.${SONAME}: %.o
+%.so.${SONAME}: %.o libfaketime.map
${CC} -o $@ -Wl,-soname,$@ ${LDFLAGS} ${LIB_LDFLAGS} $< ${LDADD}
clean: