chiark / gitweb /
autogen.sh: fix -print-multi-os-directory usage
authorKay Sievers <kay.sievers@vrfy.org>
Tue, 18 Nov 2008 02:52:05 +0000 (03:52 +0100)
committerKay Sievers <kay.sievers@vrfy.org>
Tue, 18 Nov 2008 02:52:05 +0000 (03:52 +0100)
autogen.sh

index b4c853f..ef3f579 100755 (executable)
@@ -49,11 +49,11 @@ CFLAGS="-g -Wall \
 
 if test -z "$1" -o "$1" = "install"; then
        args="--prefix=/usr --exec-prefix= --sysconfdir=/etc --with-selinux"
 
 if test -z "$1" -o "$1" = "install"; then
        args="--prefix=/usr --exec-prefix= --sysconfdir=/etc --with-selinux"
-       args="$args --with-libdir-name=$(basename $(gcc -print-multi-os-directory))"
+       args="$args --with-libdir-name=lib/$(gcc -print-multi-os-directory)"
        CFLAGS="$CFLAGS -O2"
 elif test "$1" = "devel" ; then
        args="--prefix=/usr --exec-prefix= --sysconfdir=/etc --with-selinux --enable-debug"
        CFLAGS="$CFLAGS -O2"
 elif test "$1" = "devel" ; then
        args="--prefix=/usr --exec-prefix= --sysconfdir=/etc --with-selinux --enable-debug"
-       args="$args --with-libdir-name=$(basename $(gcc -print-multi-os-directory))"
+       args="$args --with-libdir-name=lib/$(gcc -print-multi-os-directory)"
        CFLAGS="$CFLAGS -O0"
 else
        args=$@
        CFLAGS="$CFLAGS -O0"
 else
        args=$@