Minor fixes to CC variable and other build options in base/{signify,swig,sysklogd}

This commit is contained in:
PktSurf 2023-03-17 13:24:09 +05:30
parent f4a8df87a1
commit b003d86866
3 changed files with 13 additions and 12 deletions

View file

@ -21,19 +21,21 @@ build() {
# in by xorg and qt5-based applications. We'll keep it contained to the
# signify source directory by modifying the pkgconfig path and CFLAGS and LDFLAGS.
mkdir libbsd && cd libbsd
tar xf "$srcdir"/libbsd-$libbsdversion.tar.?z
cd libbsd-$libbsdversion
./configure --prefix="$PWD"/../
make && make install
cd ..
mkdir -p libbsd && cd libbsd
(
tar xf "$srcdir"/libbsd-$libbsdversion.tar.?z
cd libbsd-$libbsdversion
./configure --prefix="$PWD"/../
make && make install
)
LIBBSDPATH="$PWD"
cd ..
PKG_CONFIG_PATH="$pkg_CONFIG_PATH:$LIBBSDPATH/lib/pkgconfig"
PKG_CONFIG_PATH="$PKG_CONFIG_PATH:$LIBBSDPATH/lib/pkgconfig"
applypatch $srcdir/sha2.h.patch
make CC="$CC -static" \
make CC+=" -static" \
CFLAGS="-I$LIBBSDPATH/include" LDFLAGS="-L$LIBBSDPATH/lib"
make install PREFIX="" DESTDIR=$pkg

View file

@ -17,8 +17,7 @@ prepbuilddir() {
build() {
./configure \
--prefix="" \
--sysconfdir=/etc
--prefix=""
make
make install DESTDIR=$pkg

View file

@ -20,7 +20,7 @@ prepbuilddir() {
}
build() {
make all syslog_tst CC="$CC -static"
make all syslog_tst CC+=" -static"
# install binaries
install -Dm 755 klogd $pkg/bin/klogd
@ -36,7 +36,7 @@ build() {
install -Dm 644 $srcdir/syslog.conf.new $pkg/etc/syslog.conf.new
install -Dm 644 $srcdir/syslog.logrotate $pkg/etc/logrotate.d/syslog.new
cp ANNOUNCE CHANGES COPYING MANIFEST NEWS README* $pkgdocs/
cp COPYING $pkgdocs/
mkdir -p $pkg/var/log
for i in cron debug maillog messages secure spooler syslog ; do