openbsd-ports/x11/afterstep/patches/patch-libAfterBase_Makefile_in

28 lines
865 B
Plaintext

$OpenBSD: patch-libAfterBase_Makefile_in,v 1.1 2009/12/06 15:09:22 jasper Exp $
Honor CPPFLAGS.
--- libAfterBase/Makefile.in.orig Sat Apr 21 00:10:45 2007
+++ libAfterBase/Makefile.in Thu Dec 3 16:18:58 2009
@@ -48,6 +48,7 @@ LIBVERMAJOR = 0
CC = @CC@
CCFLAGS = @CFLAGS@
+CPPFLAGS = @CPPFLAGS@
# -march=pentiumpro -mcpu=pentiumpro
EXTRA_DEFINES = @DEFINE_XLOCALE@
@@ -297,10 +298,10 @@ $(LIB_STATIC): $(LIB_OBJS) $(LIB_INCS)
$(RANLIB) $(LIB_STATIC)
.c.o:
- $(CC) $(CCFLAGS) $(EXTRA_DEFINES) $(INCLUDES) $(EXTRA_INCLUDES) -c $*.c
+ $(CC) $(CCFLAGS) $(CPPFLAGS) $(EXTRA_DEFINES) $(INCLUDES) $(EXTRA_INCLUDES) -c $*.c
.c.s:
- $(CC) $(CCFLAGS) $(EXTRA_DEFINES) $(INCLUDES) $(EXTRA_INCLUDES) -S $*.c
+ $(CC) $(CCFLAGS) $(CPPFLAGS) $(EXTRA_DEFINES) $(INCLUDES) $(EXTRA_INCLUDES) -S $*.c
#
# include dependency files if they exist