httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Jones" <oscare...@gmail.com>
Subject link failure from buildmark
Date Wed, 24 Jan 2007 15:08:55 GMT
zOS needs to compile with extra CFLAGS in order to link correctly.
After revisions 153273/153266 to ./Makefile.in all compile and link flags
are lost as
buildmark.c is made without them: PROGRAM_PRELINK = $(COMPILE)
$(top_srcdir)/server/buildmark.c


zOS LIBTOOL does add the needed flags, so a solution for zOS is below. Seems
to work on linux, too.
Any comments for other/better/generic approaches?


--- Makefile.in.orig Wed Jan 17 14:00:11 2007
+++ Makefile.in Thu Jan 18 09:17:17 2007
@@ -4,8 +4,8 @@

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

Note: Can't use $(LT_COMPILE) directly instead of $(LIBTOOL) as
rules.mkuses parms '-c $< && touch $@'
which get in the way.

--
David Jones
oscaremma@gmail.com <oscaremma@yahoo.com>

Mime
View raw message