about summary refs log tree commit diff
path: root/rpm/template
diff options
context:
space:
mode:
Diffstat (limited to 'rpm/template')
-rw-r--r--rpm/template6
1 files changed, 4 insertions, 2 deletions
diff --git a/rpm/template b/rpm/template
index f4c2e9f7d7..7b03ed5ab2 100644
--- a/rpm/template
+++ b/rpm/template
@@ -10,11 +10,13 @@ Source: glibc-@VERSION@.tar.gz
 %setup
 
 %build
-configure --prefix=/usr
-cat >configparms <<EOF
+configure --prefix=@prefix@
+if test x@prefix@ = /usr; then
+  cat >configparms <<EOF
 slibdir=/lib
 sysconfdir=/etc
 EOF
+fi
 make
 
 %install