mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-22 10:50:07 +00:00
* rpm/template (%build): Use @prefix@ instead of always /usr.
Set up configparms only if @prefix@ is in fact /usr. * rpm/Makefile ($(config)): Substitute $(prefix) for @prefix@.
This commit is contained in:
parent
f49bc43fc0
commit
66da789f8d
@ -1,5 +1,9 @@
|
|||||||
Tue Jul 2 10:44:37 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
|
Tue Jul 2 10:44:37 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
|
||||||
|
|
||||||
|
* rpm/template (%build): Use @prefix@ instead of always /usr.
|
||||||
|
Set up configparms only if @prefix@ is in fact /usr.
|
||||||
|
* rpm/Makefile ($(config)): Substitute $(prefix) for @prefix@.
|
||||||
|
|
||||||
* elf/Makefile: Add missing endif.
|
* elf/Makefile: Add missing endif.
|
||||||
|
|
||||||
* nss/nss_files/files-ethers.c (ntohost): Fix db key.
|
* nss/nss_files/files-ethers.c (ntohost): Fix db key.
|
||||||
|
@ -64,7 +64,9 @@ instvars = include lib bin sbin data others
|
|||||||
# Generate the rpm spec file for this configuration.
|
# Generate the rpm spec file for this configuration.
|
||||||
$(config): template $(distinfo) Makefile
|
$(config): template $(distinfo) Makefile
|
||||||
rm -f $@.new
|
rm -f $@.new
|
||||||
(sed -e 's%@VERSION@%$(version)%g' $<; \
|
(sed -e 's%@VERSION@%$(version)%g' \
|
||||||
|
-e 's%@prefix@%$(prefix)%g' \
|
||||||
|
$<; \
|
||||||
($(foreach var,$(instvars),\
|
($(foreach var,$(instvars),\
|
||||||
list='$(install-$(var))'; \
|
list='$(install-$(var))'; \
|
||||||
for f in $$list; do \
|
for f in $$list; do \
|
||||||
|
@ -10,11 +10,13 @@ Source: glibc-@VERSION@.tar.gz
|
|||||||
%setup
|
%setup
|
||||||
|
|
||||||
%build
|
%build
|
||||||
configure --prefix=/usr
|
configure --prefix=@prefix@
|
||||||
cat >configparms <<EOF
|
if test x@prefix@ = /usr; then
|
||||||
|
cat >configparms <<EOF
|
||||||
slibdir=/lib
|
slibdir=/lib
|
||||||
sysconfdir=/etc
|
sysconfdir=/etc
|
||||||
EOF
|
EOF
|
||||||
|
fi
|
||||||
make
|
make
|
||||||
|
|
||||||
%install
|
%install
|
||||||
|
Loading…
Reference in New Issue
Block a user