[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
reorganize relocwrapper dependencies
From: |
Bruno Haible |
Subject: |
reorganize relocwrapper dependencies |
Date: |
Sat, 3 Mar 2007 21:14:46 +0100 |
User-agent: |
KMail/1.5.4 |
Hi Ben,
I think it's useful to separate the object files that end up in a relocatable
program from the object files that make up the relocatable wrapper (on
non-glibc systems). Reasons:
- The size of the wrapper should be kept small, which means no xalloc
in particular.
- The CPPFLAGS that the user sets for his compilations may hurt when
applied to progreloc.c.
- It's useless for GNU hello's libgnu.a to contain xreadlink.o and similar,
since these functions are not used by GNU hello itself.
For this reason, AC_LIBOBJ should be avoided here. This implies the use
of different autoconf macros, and therefore the direct use of e.g. xreadlink.c
without going through module 'xreadlink'.
2007-03-03 Bruno Haible <address@hidden>
* modules/relocatable-prog-wrapper: New file.
* modules/relocatable (Depends-on): Add it. Remove all other
dependencies except progname.
(Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
========================== modules/relocatable-prog-wrapper ===================
Description:
Source for the wrapper program that is required for making programs relocatable
that depend on shared libraries installed with the same installation prefix.
Files:
build-aux/install-reloc
lib/relocwrapper.c
lib/progname.h
lib/progname.c
lib/progreloc.c
lib/xreadlink.h
lib/xreadlink.c
lib/readlink.h
lib/readlink.c
lib/canonicalize.h
lib/canonicalize-lgpl.c
lib/allocsa.h
lib/allocsa.c
lib/relocatable.h
lib/relocatable.c
lib/setenv.h
lib/setenv.c
lib/strerror.c
lib/c-ctype.h
lib/c-ctype.c
m4/allocsa.m4
m4/canonicalize-lgpl.m4
m4/eealloc.m4
m4/longlong.m4
m4/longdouble.m4
m4/readlink.m4
m4/relocatable-lib.m4
m4/setenv.m4
m4/strerror.m4
Depends-on:
alloca-opt
pathmax
ssize_t
stdbool
unistd
configure.ac:
gl_FUNC_READLINK_SEPARATE
gl_CANONICALIZE_LGPL_SEPARATE
gl_ALLOCSA
gl_RELOCATABLE_LIBRARY
gl_FUNC_SETENV_SEPARATE
gl_FUNC_STRERROR_SEPARATE
Makefile.am:
Include:
License:
GPL
Maintainer:
Bruno Haible, Ben Pfaff
===============================================================================
*** modules/relocatable 1 Mar 2007 03:04:56 -0000 1.2
--- modules/relocatable 3 Mar 2007 19:59:39 -0000
***************
*** 4,27 ****
Files:
build-aux/config.libpath
- build-aux/install-reloc
build-aux/reloc-ldflags
doc/relocatable.texi
lib/relocatable.h
lib/relocatable.c
lib/progreloc.c
- lib/relocwrapper.c
m4/relocatable.m4
m4/relocatable-lib.m4
Depends-on:
! canonicalize
! c-ctype
progname
- setenv
- strerror
- unistd
- xalloc
configure.ac:
gl_RELOCATABLE([$gl_source_base])
--- 4,20 ----
Files:
build-aux/config.libpath
build-aux/reloc-ldflags
doc/relocatable.texi
lib/relocatable.h
lib/relocatable.c
lib/progreloc.c
m4/relocatable.m4
m4/relocatable-lib.m4
Depends-on:
! relocatable-prog-wrapper
progname
configure.ac:
gl_RELOCATABLE([$gl_source_base])
- reorganize relocwrapper dependencies,
Bruno Haible <=