SHA256
1
0
forked from pool/a2ps

Accepting request 266988 from home:msmeissn:branches:Publishing

- build with PIE

OBS-URL: https://build.opensuse.org/request/show/266988
OBS-URL: https://build.opensuse.org/package/show/Publishing/a2ps?expand=0&rev=43
This commit is contained in:
OBS User mrdocs 2015-01-03 00:45:49 +00:00 committed by Git OBS Bridge
parent 92997eb817
commit e231041bee
2 changed files with 8 additions and 3 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Dec 23 13:23:34 UTC 2014 - meissner@suse.com
- build with PIE
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Nov 10 17:00:14 UTC 2014 - sfalken@opensuse.org Mon Nov 10 17:00:14 UTC 2014 - sfalken@opensuse.org

View File

@ -108,7 +108,7 @@ cp -f %SOURCE1 po/ko.po
%build %build
#XXX: ugly hack; necessary?? #XXX: ugly hack; necessary??
cp /usr/share/automake-*/config.{guess,sub} auxdir/ cp /usr/share/automake-*/config.{guess,sub} auxdir/
export CFLAGS="$RPM_OPT_FLAGS -D_GNU_SOURCE -funroll-loops -Wall -pipe -fstack-protector" export CFLAGS="$RPM_OPT_FLAGS -D_GNU_SOURCE -funroll-loops -Wall -pipe -fstack-protector -fPIE"
export LPR=lpr export LPR=lpr
export CC=gcc export CC=gcc
touch -r .ref configure.in touch -r .ref configure.in
@ -120,9 +120,9 @@ cp -f %SOURCE1 po/ko.po
rm -f ${in} ${m4%.*} rm -f ${in} ${m4%.*}
con="$con ${in##*/}" con="$con ${in##*/}"
done done
make %{?_smp_mflags} -C contrib/ ${con} make %{?_smp_mflags} -C contrib/ ${con} LDFLAGS="-pie"
sh ./config.status sh ./config.status
make %{?_smp_mflags} PSFONT_PATH=%{_datadir}/ghostscript/fonts make %{?_smp_mflags} PSFONT_PATH=%{_datadir}/ghostscript/fonts LDFLAGS="-pie"
pushd doc pushd doc
texi2html a2ps.texi texi2html a2ps.texi
popd popd