httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Jones" <oscare...@gmail.com>
Subject PATCH: build failure from ./Makefile due to no ability to add CFLAGS to buildmark compile
Date Fri, 27 Jul 2007 17:18:08 GMT
zOS needs to compile with extra CFLAGS in order to link correctly.
After revisions 153273/153266 to ./Makefile.in there is no ability to add
any flags as buildmark.c is made without them  directly using compile, i.e:

PROGRAM_PRELINK = $(COMPILE) $(top_srcdir)/server/buildmark.c

This patch will allow any system that needs extra flags on compile to work,
while not affecting gcc compiles. Tested on several flavors of linux, aix,
zOS

>svn diff Makefile.in <http://makefile.in/>
Index: Makefile.in <http://makefile.in/>
===================================================================
--- Makefile.in <http://makefile.in/> (revision 494665)
+++ Makefile.in <http://makefile.in/> (working copy)
@@ -4,8 +4,8 @@

 PROGRAM_NAME         = $(progname)
 PROGRAM_SOURCES      = modules.c
-PROGRAM_LDADD        = buildmark.o $(HTTPD_LDFLAGS) $(PROGRAM_DEPENDENCIES)
$(EXTRA_LIBS) $(AP_LIBS) $(LIBS)
-PROGRAM_PRELINK      = $(COMPILE) -c $(top_srcdir)/server/buildmark .c
+PROGRAM_LDADD        = buildmark.lo $(HTTPD_LDFLAGS)
$(PROGRAM_DEPENDENCIES) $(EXTRA_LIBS) $(AP_LIBS) $(LIBS)
+PROGRAM_PRELINK      = $(LIBTOOL) --mode=compile $(COMPILE)  -c
$(top_srcdir)/server/buildmark.c
 PROGRAM_DEPENDENCIES = \
   server/libmain.la \
   $(BUILTIN_LIBS) \

Mime
View raw message