This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: bfd.h installation location
On Sat, May 11, 2002 at 04:47:26PM -0300, Alexandre Oliva wrote:
> Since bfd.h may differ from one host to another, it must not be
> installed in $(prefix), but rather in $(exec_prefix).
>
> You're free to keep exec_prefix = prefix, as long as you use different
> prefixes for different hosts, but this should not be required, since
> it's in direct conflict with the GNU Coding Standards.
OK, seems like enough projects want bfd.h installed. I'm installing
this to mainline.
bfd/ChangeLog
* Makefile.am (install-data-local): Install headers to
$(exec_prefix)/include.
* Makefile.in: Regenerate.
Index: bfd/Makefile.am
===================================================================
RCS file: /cvs/src/src/bfd/Makefile.am,v
retrieving revision 1.81
diff -u -p -r1.81 Makefile.am
--- bfd/Makefile.am 4 Apr 2002 14:04:38 -0000 1.81
+++ bfd/Makefile.am 13 May 2002 00:51:49 -0000
@@ -675,11 +675,11 @@ $(BFD32_LIBS) \
# Install BFD include file, and others that it needs.
install-data-local: $(BFD_H)
@$(NORMAL_INSTALL)
- $(mkinstalldirs) $(DESTDIR)$(includedir)
- $(INSTALL_DATA) $(BFD_H) $(DESTDIR)$(includedir)/bfd.h
- $(INSTALL_DATA) $(INCDIR)/ansidecl.h $(DESTDIR)$(includedir)/ansidecl.h
- $(INSTALL_DATA) $(INCDIR)/symcat.h $(DESTDIR)$(includedir)/symcat.h
- $(INSTALL_DATA) $(INCDIR)/bfdlink.h $(DESTDIR)$(includedir)/bfdlink.h
+ $(mkinstalldirs) $(DESTDIR)$(exec_prefix)/include
+ $(INSTALL_DATA) $(BFD_H) $(DESTDIR)$(exec_prefix)/include/bfd.h
+ $(INSTALL_DATA) $(INCDIR)/ansidecl.h $(DESTDIR)$(exec_prefix)/include/ansidecl.h
+ $(INSTALL_DATA) $(INCDIR)/symcat.h $(DESTDIR)$(exec_prefix)/include/symcat.h
+ $(INSTALL_DATA) $(INCDIR)/bfdlink.h $(DESTDIR)$(exec_prefix)/include/bfdlink.h
Makefile: $(srcdir)/configure.in
--
Alan Modra
IBM OzLabs - Linux Technology Centre