Change HPUX loader flags to trap null pointer derefs
authorTom Lane
Thu, 1 Oct 1998 01:26:45 +0000 (01:26 +0000)
committerTom Lane
Thu, 1 Oct 1998 01:26:45 +0000 (01:26 +0000)
src/makefiles/Makefile.hpux

index eeb10589e698ffdda6ec2104415d7cbc5f61eb6b..756d939ea4478acbfbd175b7162a84b90990911d 100644 (file)
@@ -21,8 +21,9 @@ ifeq ($(HPUX_MAJOR), 09)
 endif
 
 # On all HPUX versions, embed LIBDIR as the shared library search path
-# so that the executables don't need SHLIB_PATH to be set.
-LDFLAGS+= -Wl,+b -Wl,$(LIBDIR)
+# so that the executables don't need SHLIB_PATH to be set, and enable -z
+# to catch null pointer dereferences.
+LDFLAGS+= -Wl,+b -Wl,$(LIBDIR) -Wl,-z
 
 # Does anyone use this stuff?
 #ifdef ENFORCE_ALIGNMENT