hp-ux needs this to get through the System/Support libs
authorDuraid Madina <duraid@octopus.com.au>
Mon, 16 May 2005 06:38:09 +0000 (06:38 +0000)
committerDuraid Madina <duraid@octopus.com.au>
Mon, 16 May 2005 06:38:09 +0000 (06:38 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22078 91177308-0d34-0410-b5e6-96231b3b80d8

Makefile.rules

index 93313d6537277ff5a9adc7ba8aa85efbda2f1450..c5c19049b153aa1227b1be5ca95e2b948c3b93e3 100644 (file)
@@ -343,6 +343,10 @@ endif
 
 CompileCommonOpts := -Wall -W -Wwrite-strings -Wno-unused
 
+ifeq ($(OS),HP-UX)
+  CompileCommonOpts += -D_REENTRANT -D_HPUX_SOURCE
+endif
+
 LD.Flags  += -L$(LibDir) -L$(LLVMLibDir) 
 CPP.Flags += -I$(PROJ_OBJ_DIR) -I$(PROJ_SRC_DIR) \
             -I$(PROJ_OBJ_ROOT)/include \