+Tue Oct 24 18:19:09 1995 Jason Molenda (crash@phydeaux.cygnus.com)
+
+ * Makefile.in (X11_LIB): Removed.
+ (X11_FLAGS_TO_PASS): pass only X11_EXTRA_CFLAGS and X11_EXTRA_LIBS.
+
+ * configure.in (host_makefile_frag): mh-aix & mh-sun removed.
+
Sun Oct 22 13:04:42 1995 Michael Meissner <meissner@tiktok.cygnus.com>
* cfg-ml-com.in (powerpc*): Shorten some of the multilib directory
else echo runtest ; fi`
-# libraries that may need to be augmented on a system-by-system basis
-X11_LIB = -lX11
-
# compilers to use to create programs which must be run in the build
# environment.
CC_FOR_BUILD = $(CC)
fi; \
fi`
+LD_FOR_TARGET = ` \
+ if [ -f $$r/ld/ld.new ] ; then \
+ echo $$r/ld/ld.new ; \
+ else \
+ if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
+ echo $(LD); \
+ else \
+ t='$(program_transform_name)'; echo ld | sed -e 's/x/x/' $$t ; \
+ fi; \
+ fi`
+
DLLTOOL_FOR_TARGET = ` \
if [ -f $$r/binutils/dlltool ] ; then \
echo $$r/binutils/dlltool ; \
"INSTALL_XFORM=$(INSTALL_XFORM)" \
"LDFLAGS=$(LDFLAGS)" \
"LEX=$(LEX)" \
+ "LD_FOR_TARGET=$(LD_FOR_TARGET)" \
"LIBCFLAGS=$(LIBCFLAGS)" \
"LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
"LIBCXXFLAGS=$(LIBCXXFLAGS)" \
# Flags that are concerned with the location of the X11 include files
# and library files
+#
+# NOTE: until the top-level is getting the values via autoconf, it only
+# causes problems to have this top-level Makefile overriding the autoconf-set
+# values in child directories. Only variables that don't conflict with
+# autoconf'ed ones should be passed by X11_FLAGS_TO_PASS for now.
+#
X11_FLAGS_TO_PASS = \
- "X11_INCLUDE_FLAGS=$(X11_INCLUDE_FLAGS)" \
- "X11_LIB_FLAGS=$(X11_LIB_FLAGS)" \
- "X11_LIB=$(X11_LIB)"
+ 'X11_EXTRA_CFLAGS=$(X11_EXTRA_CFLAGS)' \
+ 'X11_EXTRA_LIBS=$(X11_EXTRA_LIBS)'
# Flags to pass down to makes which are built with the target environment.
# The double $ decreases the length of the command line; the variables
'CXX=$$(CXX_FOR_TARGET)' \
'CXXFLAGS=$$(CXXFLAGS_FOR_TARGET)' \
'DLLTOOL=$$(DLLTOOL_FOR_TARGET)' \
+ 'LD=$$(LD_FOR_TARGET)' \
'LIBCFLAGS=$$(LIBCFLAGS_FOR_TARGET)' \
'LIBCXXFLAGS=$$(LIBCXXFLAGS_FOR_TARGET)' \
'NM=$$(NM_FOR_TARGET)' \
CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
CXX="$(CXX_FOR_TARGET)"; export CXX; \
CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
+ LD="$(LD_FOR_TARGET)"; export LD; \
NM="$(NM_FOR_TARGET)"; export NM; \
RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
cd $${dir}; \
i[345]86-*-go32*) host_makefile_frag=config/mh-go32 ;;
i[345]86-*-win32) host_makefile_frag=config/mh-i386win32 ;;
vax-*-ultrix2*) host_makefile_frag=config/mh-vaxult2 ;;
- *-ibm-aix*) host_makefile_frag=config/mh-aix ;;
- *-bull-bosx*) host_makefile_frag=config/mh-aix ;;
*-*-solaris2*) host_makefile_frag=config/mh-solaris ;;
m68k-sun-*) host_makefile_frag=config/mh-sun3 ;;
- *-sun-*) host_makefile_frag=config/mh-sun ;;
*-hp-hpux[78]*) host_makefile_frag=config/mh-hpux8 ;;
*-hp-hpux*) host_makefile_frag=config/mh-hpux ;;
*-*-hiux*) host_makefile_frag=config/mh-hpux ;;