[syslinux] [tftp-hpa] [patch] building on hpux and add CPPFLAGS

Peter O'Gorman syslinux at mlists.thewrittenword.com
Wed May 17 06:21:39 PDT 2006


Hi,
We just build tftp-hpa on out supported platforms, and I have a very
small patch. On hpux, we have a sysexits.h that does not define
EX_CONFIG. Also, we like to use CPPFLAGS to point to our include dirs,
tftp-hpa doesn't use CPPFLAGS. This can be a little confusing, as the
configure checks use CPPFLAGS, but the build itself does not.

Peter

-------------- next part --------------
Index: config.h
===================================================================
--- config.h.orig
+++ config.h
@@ -238,7 +238,9 @@ typedef unsigned long u_long;
 #define EX_NOPERM       77      /* permission denied */
 #define EX_CONFIG       78      /* configuration error */
 #endif
-
+#ifndef EX_CONFIG
+#define EX_CONFIG       78      /* configuration error */
+#endif
 /* If we don't have sigsetjmp() et all, setjmp() will have to do */
 
 #ifndef HAVE_SIGSETJMP
Index: MCONFIG.in
===================================================================
--- MCONFIG.in.orig
+++ MCONFIG.in
@@ -50,7 +50,7 @@ INSTALL_DATA    = @INSTALL_DATA@
 # Compiler and compiler flags
 CC      = @CC@
 CFLAGS  = @CFLAGS@ -I$(SRCROOT)
-
+CPPFLAGS = @CPPFLAGS@
 # Link flags
 LDFLAGS = @LDFLAGS@
 
Index: MRULES
===================================================================
--- MRULES.orig
+++ MRULES
@@ -3,20 +3,20 @@
 .SUFFIXES: .c .cc .o .s .S .i
 
 .c.o:
-	$(CC) $(CFLAGS) -c $<
+	$(CC) $(CFLAGS) $(CPPFLAGS) -c $<
 
 .c.s:
-	$(CC) $(CFLAGS) -S -o $@ $<
+	$(CC) $(CFLAGS) $(CPPFLAGS) -S -o $@ $<
 
 .c.i:
-	$(CC) $(CFLAGS) -E -o $@ $<
+	$(CC) $(CFLAGS) $(CPPFLAGS) -E -o $@ $<
 
 .cc.o:
-	$(CXX) $(CXXFLAGS) -c $<
+	$(CXX) $(CXXFLAGS) $(CPPFLAGS) -c $<
 
 .cc.s:
-	$(CXX) $(CXXFLAGS) -S -o $@ $<
+	$(CXX) $(CXXFLAGS) $(CPPFLAGS) -S -o $@ $<
 
 .cc.i:
-	$(CXX) $(CXXFLAGS) -E -o $@ $<
+	$(CXX) $(CXXFLAGS) $(CPPFLAGS) -E -o $@ $<
 


More information about the Syslinux mailing list