From: Arkadiusz Miśkiewicz Date: Sun, 15 Jan 2012 14:38:26 +0000 (+0000) Subject: - rel 2; build with MKSH_BINSHREDUCED (our old pdksh had this mode on by default... X-Git-Tag: auto/th/mksh-40d-2 X-Git-Url: https://git.pld-linux.org/gitweb.cgi?a=commitdiff_plain;ds=sidebyside;h=3ee71a53edcc194cb5bf59528956a6d2dd2ca060;p=packages%2Fmksh.git - rel 2; build with MKSH_BINSHREDUCED (our old pdksh had this mode on by default thanks to -debian.patch). Gives us set -o sh behaviour for /bin/sh. Changed files: mksh.spec -> 1.36 --- diff --git a/mksh.spec b/mksh.spec index 2ef7b02..5104e9f 100644 --- a/mksh.spec +++ b/mksh.spec @@ -5,7 +5,7 @@ Summary: MirBSD Korn Shell Summary(pl.UTF-8): Powłoka Korna z MirBSD Name: mksh Version: 40d -Release: 1 +Release: 2 License: BSD Group: Applications/Shells Source0: http://www.mirbsd.org/MirOS/dist/mir/mksh/%{name}-R%{version}.cpio.gz @@ -93,8 +93,9 @@ sed -i -e 's#@DISTRO@#PLD/Linux 3.0#g' check.t sh.h install -d out CC="%{__cc}" \ -CFLAGS="%{rpmcppflags} %{rpmcflags}" \ +CFLAGS="%{rpmcflags}" \ LDFLAGS="%{rpmldflags}" \ +CPPFLAGS="-DMKSH_BINSHREDUCED=1 %{rpmcppflags}" \ sh ./Build.sh -Q -r -j -c lto # skip some tests if not on terminal @@ -107,8 +108,9 @@ mv mksh out/mksh.dynamic %if %{with static} CC="%{__cc}" \ -CFLAGS="%{rpmcppflags} %{rpmcflags}" \ +CFLAGS="%{rpmcflags}" \ LDFLAGS="%{rpmldflags} -static" \ +CPPFLAGS="-DMKSH_BINSHREDUCED=1 %{rpmcppflags}" \ sh ./Build.sh -Q -r -j -c lto %{?with_tests:./test.sh -v $skip_tests}