This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

libiberty as a parameter


I'll admit this is a weird patch, as it does not do anything yet.

The idea is just to make explicit the ../libiberty/libiberty.a
as a variable in gcc/Makefile.in, so that a further stage command
could override it by passing explicitly LIBIBERTY=... to the sub-make.

In a less abstract way, OpenBSD does have a dynamic library flavor of
libiberty already installed when gcc/egcs gets built. So specifying
LIBIBERTY=-liberty   along is enough to pick it up.

Sun Jan 31 16:57:41 MET 1999	Marc Espie	(espie@openbsd.org)
	* Makefile.in: introduce LIBIBERTY as an overridable variable

Index: Makefile.in
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/Makefile.in,v
retrieving revision 1.220
diff -u -r1.220 Makefile.in
--- Makefile.in	1999/01/27 15:45:43	1.220
+++ Makefile.in	1999/01/31 15:52:54
@@ -578,9 +578,10 @@
 # We don't use USE_ALLOCA because backquote expansion doesn't work in deps.
 HOST_LIBDEPS= $(HOST_PREFIX)$(HOST_INTLLIBS) $(HOST_PREFIX)$(HOST_OBSTACK) $(HOST_PREFIX)$(HOST_ALLOCA) $(HOST_PREFIX)$(HOST_MALLOC) $(HOST_PREFIX)$(HOST_VFPRINTF) $(HOST_PREFIX)$(HOST_DOPRINT)
 
+LIBIBERTY=../libiberty/libiberty.a
 # How to link with both our special library facilities
 # and the system's installed libraries.
-LIBS = $(OBSTACK) $(USE_ALLOCA) $(MALLOC) $(INTLLIBS) @LIBS@ $(VFPRINTF) $(DOPRINT) $(CLIB) ../libiberty/libiberty.a
+LIBS = $(OBSTACK) $(USE_ALLOCA) $(MALLOC) $(INTLLIBS) @LIBS@ $(VFPRINTF) $(DOPRINT) $(CLIB) $(LIBIBERTY)
 
 # Likewise, for use in the tools that must run on this machine
 # even if we are cross-building GCC.
-- 
	Marc Espie		
|anime, sf, juggling, unicycle, acrobatics, comics...
|AmigaOS, OpenBSD, C++, perl, Icon, PostScript...
| `real programmers don't die, they just get out of beta'


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]