diff --git a/templates/klibc-module-init-tools/template b/templates/klibc-module-init-tools/template index f6887e2e705..db31b23e067 100644 --- a/templates/klibc-module-init-tools/template +++ b/templates/klibc-module-init-tools/template @@ -15,7 +15,7 @@ long_desc=" This package uses klibc for use in the initramfs." -Add_dependency build klibc-devel +Add_dependency build klibc Add_dependency run klibc do_install() @@ -23,14 +23,14 @@ do_install() local destdir=$XBPS_DESTDIR/$pkgname-$version cd $wrksrc - CFLAGS="${CFLAGS} -DCONFIG_NO_BACKWARDS_COMPAT" \ + CFLAGS="-O2 -DCONFIG_NO_BACKWARDS_COMPAT" \ CC=klcc LD=klcc ./configure --prefix= # klibc lacks getc_unlocked, so use getc instead sed 's|getc_unlocked|getc|g' -i *.c make || return 1 - install -d ${destdir}/usr/lib/klibc/bin + install -d ${destdir}/usr/lib/klibc/sbin for f in depmod modinfo modprobe insmod lsmod rmmod; do - install -s -m755 ${f} ${destdir}/usr/lib/klibc/bin + install -s -m755 ${f} ${destdir}/usr/lib/klibc/sbin done }