aboutsummaryrefslogtreecommitdiffstats
path: root/erts/etc/common/Makefile.in
diff options
context:
space:
mode:
authorPatrik Nyblom <[email protected]>2012-06-12 18:45:45 +0200
committerPatrik Nyblom <[email protected]>2012-06-13 16:45:50 +0200
commit70b17a5ccb8204df1fbbf04d8232492267dd7533 (patch)
tree6d258ac2f0d96d7f9f5f3ecf6e5b5ef5115e6ee9 /erts/etc/common/Makefile.in
parentb16baad540d35b890c0c6baf9a1be2a90ea96239 (diff)
downloadotp-70b17a5ccb8204df1fbbf04d8232492267dd7533.tar.gz
otp-70b17a5ccb8204df1fbbf04d8232492267dd7533.tar.bz2
otp-70b17a5ccb8204df1fbbf04d8232492267dd7533.zip
Make heart use clock_gettime when available
Diffstat (limited to 'erts/etc/common/Makefile.in')
-rw-r--r--erts/etc/common/Makefile.in5
1 files changed, 4 insertions, 1 deletions
diff --git a/erts/etc/common/Makefile.in b/erts/etc/common/Makefile.in
index 3db4fcba61..20c4c3c2b1 100644
--- a/erts/etc/common/Makefile.in
+++ b/erts/etc/common/Makefile.in
@@ -61,6 +61,9 @@ LD = @LD@
LIBS = @LIBS@
LDFLAGS = @LDFLAGS@
+# For clock_gettime in heart
+RTLIBS = @LIBRT@
+
ifeq ($(TARGET),win32)
ifeq ($(TYPE),debug)
CFLAGS = $(subst -O2,-g,@CFLAGS@ @DEFS@ $(TYPE_FLAGS) @WFLAGS@ -I$(SYSDIR) \
@@ -459,7 +462,7 @@ else
$(BINDIR)/heart@EXEEXT@: $(OBJDIR)/heart.o $(ENTRY_OBJ)
$(LD) $(LDFLAGS) $(ENTRY_LDFLAGS) -o $@ $(OBJDIR)/heart.o \
- $(ENTRY_OBJ) $(WINDSOCK)
+ $(RTLIBS) $(ENTRY_OBJ) $(WINDSOCK)
$(OBJDIR)/heart.o: heart.c
$(CC) $(CFLAGS) -o $@ -c heart.c