From 75c9b0fbc3cf5a7ad9d9ccba36df6a57ed2d3f2a Mon Sep 17 00:00:00 2001 From: sulincix Date: Wed, 16 Nov 2022 20:20:31 +0000 Subject: [PATCH] strip --- system/devel/gcc/ympbuild | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/system/devel/gcc/ympbuild b/system/devel/gcc/ympbuild index 5fbcfc39..35480b9d 100644 --- a/system/devel/gcc/ympbuild +++ b/system/devel/gcc/ympbuild @@ -31,8 +31,8 @@ prepare(){ setup(){ options=( --prefix=/usr - --libdir=/usr/lib64 - --libexecdir=/usr/lib64 + --libdir=/usr/lib + --libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-pkgversion="Sulix" @@ -61,5 +61,9 @@ build(){ package(){ cd build make install -j`nproc` + # move lib to lib64 + mv ${DESTDIR}/usr/{lib,lib64} + # strip all binaries for minimize size + find ${DESTDIR} -type f -exec strip {} \; }