You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2016/10/24 13:03:15 UTC

[Bug 60290] rules.mk defeats CC for configure

https://bz.apache.org/bugzilla/show_bug.cgi?id=60290

--- Comment #1 from Michael Osipov <19...@gmx.net> ---
After further investigation this must be handled in Makefile.in. A simple fix:

Index: Makefile.in
===================================================================
--- Makefile.in (Revision 1766400)
+++ Makefile.in (Arbeitskopie)
@@ -21,6 +21,7 @@

 CFLAGS = @CFLAGS@
 CPPFLAGS = @CPPFLAGS@
+CC_OLD = @CC@

 # gets substituted into some targets
 TCNATIVE_MAJOR_VERSION=@TCNATIVE_MAJOR_VERSION@
@@ -47,6 +48,10 @@
 @INCLUDE_RULES@
 @INCLUDE_OUTPUTS@

+ifneq ($(CC_OLD),$(CC))
+       CC=$(CC_OLD)
+endif
+
 LINK          = $(LIBTOOL) $(LTFLAGS) --mode=link $(LT_LDFLAGS) $(COMPILE)
-version-info $(TCNATIVE_LIBTOOL_VERSION) $(ALL_LDFLAGS) -o $@
 CLEAN_SUBDIRS = test

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org