Bug #1502728: Correctly link against librt library on HP-UX.
diff --git a/Makefile.pre.in b/Makefile.pre.in
index e63066c..cbc88b6 100644
--- a/Makefile.pre.in
+++ b/Makefile.pre.in
@@ -369,7 +369,7 @@
 	fi
 
 libpython$(VERSION).sl: $(LIBRARY_OBJS)
-	$(LDSHARED) -o $@ $(LIBRARY_OBJS) $(LIBC) $(LIBM)
+	$(LDSHARED) -o $@ $(LIBRARY_OBJS) $(SHLIBS) $(LIBC) $(LIBM)
 
 # This rule is here for OPENSTEP/Rhapsody/MacOSX. It builds a temporary
 # minimal framework (not including the Lib directory and such) in the current
diff --git a/Misc/NEWS b/Misc/NEWS
index 370a18e..d54806a 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -181,6 +181,8 @@
 Build
 -----
 
+- Bug #1502728: Correctly link against librt library on HP-UX.
+
 - OpenBSD 3.9 is supported now.
 
 - Patch #1492356: Port to Windows CE.