This is the mail archive of the 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]
Other format: [Raw text]

Re: [patch] Install libgfortranbegin.a as compiler library instead of system library

The install path needs to take into account two things:

1. DESTDIR must be supported, so that the toolchain can be installed
   into an alternate tree, and

That one I tested, and it's working fine.

2. The multilib subdir must be accomodated.

I think it's OK for libfortranbegin.a to be installed wherever
libgcc.a is installed, just make sure those two items are supported in
the final Makefile.

The relevant sections of the final Makefile are:

myexeclib_LTLIBRARIES =
myexeclibdir = $(libdir)/gcc/$(target_alias)/$(gcc_version)


install-myexeclibLTLIBRARIES: $(myexeclib_LTLIBRARIES)
test -z "$(myexeclibdir)" || $(mkdir_p) "$(DESTDIR)$ (myexeclibdir)"
@list='$(myexeclib_LTLIBRARIES)'; for p in $$list; do \
if test -f $$p; then \
f=$(am__strip_dir) \
echo " $(LIBTOOL) --mode=install $ (myexeclibLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR) $(myexeclibdir)/$$f'"; \
$(LIBTOOL) --mode=install $ (myexeclibLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR) $(myexeclibdir)/$$f"; \
else :; fi; \

I don't have a multilibbed system at hand to test it, but I expect that the presence of NORMAL_INSTALL in the above rule is not a good thing. Would you know how to correct libgfortran/ for this?


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